Configure htaccess to show index.php as the default page instead of permissions error

Posted by Jan De Laet on Pro Webmasters See other posts from Pro Webmasters or by Jan De Laet
Published on 2013-11-03T13:29:14Z Indexed on 2013/11/07 4:15 UTC
Read the original article Hit count: 225

Filed under:
|

Having a problem with my .htaccess. I have this to secure all my documents:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

<FilesMatch "\.(htm|html|css|js|php)$">
    Order Allow,Deny
    Allow from all
    Allow from 127.0.0.1
</FilesMatch>

Now everything works fine except that the index page of www.mysite.com doesn't work and gives me the notification:

You don't have permission to access / on this server.

How can you fix this? If there stands www.example.com/index.php it works but if you surf to www.example.com I get this message.

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about apache