Jump to content
Sign in to follow this  
TCH-Sales

Make .php Code Read As .html

Recommended Posts

Say you want to use a PHP include inside one of your pages, but they all have a .html extension. If you don't want to convert your page to a .php extension, just add this one simple line of code to your .htaccess file.

 

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

 

This will treat all the code in your pages as PHP before it displays it on the page.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×