Jump to content

how to: change httpd.conf file so that it handles HTML as PHP


Pavlos1316

Recommended Posts

to have apache parse html as php, add this to .htaccess

 

AddType application/x-httpd-php .html

 

sometimes you don't want people to casually know what type of technology you're using, so it is useful to change the extension used by your scripts, e.g., from .php to .html

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.