Mobile app version of vmapp.org
Login or Join
Hamaas447

: Configure htaccess to show index.php as the default page instead of permissions error Having a problem with my .htaccess. I have this to secure all my documents: Order Deny,Allow Deny from all

@Hamaas447

Posted in: #Apache #Htaccess

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 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 example.com/index.php it works but if you surf to example.com I get this message.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

1 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

You have told Apache to allow for these extensions, but I'd say you didn't tell it to use another default page than index.html. Perhaps you should add something like

DirectoryIndex index.php


to your configuration?

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme