PDA

View Full Version : .htaccess question


Bernard
10-04-2005, 23:31/11:31PM
On my hosting account, I have on main site (root folder) and several non-related sites in folders (set as subdomains through CPanel).

On the main site (root folder) I need to change from the current static HTML to a dynamic PHP format. I did not want to mess with mod rewrite or 301 redirects, so I was planning on just adding:

AddHandler application/x-httpd-php .html

to the .htaccess for the root folder.

After spending the better part of the last 3 days converting the 120+ pages of my site from horrifying HTML code to a simple template based PHP & CSS code, I finally realized that adding the above code might cause all the HTML pages for my other sites (subdomains) to be run through the PHP parser.

Is there anything I can put in the .htaccess files for the subdomains to nullify the above mentioned directive if I put it in the .htaccess of the root folder?

Bernard
11-04-2005, 01:35/01:35AM
Found the answer:

RemoveHandler .html