If you want to serve php code through other files then .php files like php.html or thispage.htm or other extensions, you have 2 different choices what you can do. First you can change the apache configuration file, or you just simply change the .htaccess file (Assuming php is working properly).
We keep it simple and serve php through the .html extension……
Either change the “Main Apache HTTP server configuration file” or the “.htaccess file” by adding (or changing into) the following line:
AddType application/x-httpd-php .php .html
Through this way, you are even free to imagine yourself up a “new” extension like “.new”.
AddType application/x-httpd-php .php .html .new
In case you change the apache config file, restart apache.
Mail this!
- Comments (0)
- PingBacks (0)
- TrackBacks (0)


» Latest comments