Jump to content

Run HTML as PHP - .htaccess


transparencia

Recommended Posts

I need to run a bit of PHP code in the index.html page of my website. If I put this code in the .htaccess on the same directory of my index.html it interferes with other websites in subfolders of that directory.

 

What is wrong with this code?

 

<Files index.html> AddType application/x-httpd-php .html </Files>

Link to comment
https://forums.phpfreaks.com/topic/141232-run-html-as-php-htaccess/
Share on other sites

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.