transparencia Posted January 17, 2009 Share Posted January 17, 2009 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> Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted January 18, 2009 Share Posted January 18, 2009 <Files> will affect all files that match the given pattern. You're probably looking for something like this instead: <Location /index.html> AddType application/x-httpd-php .html </Location> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.