Some times you may get Forbidden error when you access the site in browser.
------
ERROR
------
Forbidden
You don't have permission to access / on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
------
When we check the apache logs, we will have the following errors.
-----
Directory index forbidden by Options directive: /home/site/public_html/
------
We can fix the issue by simply adding the following in the file ".htaccess".
-----
DirectoryIndex index.html index.php
-----
Now, we can access the domain without any issue. Thats it.
Have a nice day :)
No comments:
Post a Comment