Error 403
The server may display this error message due to a few reasons:
The website’s folder lacks an index file. That file is often index.php or index.html The first step should be to make sure that these files are present in the folder. Otherwise, the index file within the .htaccess file (used for individually setting up an Apache server for a specific website) can be changed by default using this directive:
DirectoryIndex
If you have a file named index.php and the server still displays error 403, check if .htaccess contains a line like:
DirectoryIndex default.php
In that case, check if the line was added by mistake or if the file has been renamed.
.htaccess can also be used to block access to the website using these directives:
Allow, deny
If the file contains this line:
deny from all
this means that access to the website is denied to all users.
You can also check after this line:
deny from all
IP addresses prohibited from visiting the website might be listed there. Make sure that your IP isn’t among them or delete these directives altogether.