This site has moved to Please update your links and bookmarks.


Question :

Using Apache can I get php to parse files not ending in .php?

Answer :

Yes it is possible, to make it work on all sites on your webserver change the following in your httpd.conf:

AddType application/x-httpd-php .php

to the following:

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

It is also possible to put this directive in the VirtualHost sections to do it per virtualhost basis. If that proves to be too much you can use .htaccess files to solve the task.