Current time: 11-26-2024, 06:51 AM Hello There, Guest! (LoginRegister)


Post Reply 
problem parsing html as php with .htaccess
Author Message
jdubs11 Offline


Posts: 4
Joined: Jan 2010
Reputation: 0
Post: #4
RE: problem parsing html as php with .htaccess
(01-14-2009 09:18 PM)HarryPW Wrote:  No errors today in the Apache log concerning php or htaccess (only about ispCP and Horde)

This is the .htaccess file I want to use
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
ErrorDocument 404 /error404.html

I also changed
AddType application/x-httpd-php .php .htm .html
into
AddHandler php-fastcgi .html

still didn't work.
It looks like a .htaccess file can't be used in the domainroot.

WR
Harry

Is there a resolution to this? The company that I lease my server from just recently upgraded to ispCP and now I cannot render any .html files as PHP. They indicated that a change would need to be made to php.ini since the .htaccess method I had been using would no longer work since PHP was no longer being run as a module. When asked what needed to be updated in php.ini, they responded w/ an 'I don't know, try adding AddHandler php-fastcgi .html to .htaccess'. This did not work for me either. Please help.
01-20-2010 11:44 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: problem parsing html as php with .htaccess - jdubs11 - 01-20-2010 11:44 PM

Forum Jump:


User(s) browsing this thread: 8 Guest(s)