Jump to content

How to get .html/.htm extensions read as .php


cooldude832

Recommended Posts

If you are running apache locate the line in httpd.conf that is similar to this:

 

application/x-httpd-php php

 

and change it to this:

 

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

 

If you do not have apache, I am not sure how to do it with IIS, if you do but do not have/do not want to restart the server you can try creating a .htaccess file and adding this:

 

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

 

Hope that helps.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.