View Full Version : .htaccess modification
starward
10-14-2006, 06:13 PM
First- I am using Front Page extensions to run some forms so I already have a .htaccess file in my public_html folder. What I want to do additionally is to run some php code on a page with a .html extension. I am doing this very thing with another domain on another host server and it works fine. On host monster's server, when I modify the existing .htaccess file with the appropiate code (AddType application/x-httpd-php .html), the page will no longer load. Anybody have any thoughts?
linFox
10-14-2006, 06:51 PM
I used to do the exact same thing on my old host for my site, running html pages as php. I can't get that to work here, all I get is script errors (I believe it's to do with PHP running as a CGI and not a module), so I had to switch to .php extension for all pages.
virtualahmad
10-15-2006, 02:03 PM
hmmm... not sure i understand which way you are trying to go, but you should be able to find your answer by going to your hm control panel, and under the "site menu", go to "MIME Types". Hope this helps.
RMcLasker
05-01-2008, 10:38 AM
First- I am using Front Page extensions to run some forms so I already have a .htaccess file in my public_html folder. What I want to do additionally is to run some php code on a page with a .html extension. I am doing this very thing with another domain on another host server and it works fine. On host monster's server, when I modify the existing .htaccess file with the appropiate code (AddType application/x-httpd-php .html), the page will no longer load. Anybody have any thoughts?
Great post. I'm just not completely sure that I'm understanding the depth to this.
Can anybody explain this out a little bit more?
sjlplat
05-02-2008, 08:12 AM
Add the following line to the .htaccess file in your public_html directory:
AddHandler application/x-httpd-php .html
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.