Jump to content

Parsing html through php preprocessor in Apache


sazzie

Recommended Posts

Add .html to the end of the following line should do it, seperated by a space:

AddType application/x-httpd-php .php

 

So the above line to this:

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

That will now pass .php and .html files to the PHP preprocessor.

 

Save the httpd.conf and restart Apache.

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.