Forum Moderators: coopster
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Only these 2 lines of code. I have placed this .htaccess in the Sites folder (OS X).
Below is the test.html which is also in the Sites folder.
<?php
echo "text";
?>
The error is my browser isn't displaying anything. Do you guys know where have I done wrong? I have chomed the .htaccess to 644. Do I need to tweak the httpd.config?
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
#<Directory /Users/*/Sites>
<Directory /Users/*/Sites>
AllowOverride All
</Directory>
cd users
sudo pico you.conf
<Directory "/Users/you/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
You can also just delete the you.conf file if you'd rather not have to edit both files in the future (tested this and it seemed to work ok).