.htaccess Suddenly Quits Working

We’ve hosted at dreamhost the last 8 years. We have a .htaccess file with two simple lines:

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

This lets us create .html pages and use PHP code in them. We use PHP for our header and footer throughout the site.

It’s been working fine since 2003 and suddenly quit this weekend. I’ve checked and re-uploaded the .htaccess file. It’s not telling the server to parse our .html files with PHP.

Livechat technical support said (allegedly) that no changes were made on our server, no changes to PHP or .htaccess policies, and that there’s nothing stopping us from using this feature but it is “unsupported” so they cannot provide any technical support for it.

Is ANYONE aware of new dreamhost policies or changes that started this past weekend that made your htaccess files quit working?? Or a work-around for this issue?

Our site: http://messiahsbranch.org (currently UGLY without the header and footer)

A phpinfo(); from our site: http://messiahsbranch.org/phpinfo.php

I’d like to avoid re-naming all of our files, losing our google rankings, and updating all of our links on each and every page to correct this. :frowning:


Change to:

AddHandler php5-cgi .html AddHandler php5-cgi .htm

I haven’t tested on DH, but you may have to use this instead:

AddHandler application/x-httpd-php .html

@erikjacobsen: No, that directive will definitely not work. I’d be surprised if it worked on any hosting provider, as “application/x-httpd-php” is a MIME type, not a handler.

I guess you are right :wink:

Andrewf YOU ROCK! Thank you sooooo much. AddHandler php5-cgi .html works perfectly. Saved us a ton of work.