WHAT A LAMP Rotating Header Image

Posts Tagged ‘htaccess’

htaccess file

.htaccess file is very important in the Apache server.
The real name of this file is Apache’s directory-level configuration file .
There are three major usages of .htaccess.

Authorization, authentication: .htaccess files are often used to specify the security restrictions for the particular directory, hence the filename “access”. The .htaccess file is often accompanied by an .htpasswd file [...]

Let php engine handle html as php

I have a site full of the html file. Later I added some php code into these html files. I don’t want to change the URL from .html to .php. It is not SEO friendly.
So, I would like php engine can handle html same as php.
Edit .htaccess file in the root.
RemoveHandler .html .htm
AddType application/x-httpd-php .php [...]