Reputation: 241
403 FORBIDDEN
You don't have permission to access/folder_name/index.php
on this server.
Server unable to read .htaccess
file, denying access to be safe
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument
to handle the request.
Here is .htaccess code:
<Files 403.shtml>
order allow,
deny allow from all
</Files>
And I also tried another code:
<Directory "/path/to/source/file/directory/www">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
But I am confused on the line "path/to/source/file/directory/www".
Upvotes: 19
Views: 69385
Reputation: 20212
I had the same issue. I am on rackspeed and use cpanel. I created a subdomain which also created the base folder. But I deleted the base folder and created it again, which caused the error.
I had to open the subdomain configuration and edit the base directory. The correct base directory was already entered but I had to do It again nevertheless, to make it reinitialize.
Upvotes: 0
Reputation: 21
If you are using cpanel
, then go to the public HTML
folder or else which subfolder creating the problem.
right click the folder, you get the option, change permission.
make alternative changes accordingly so you can make live your web page
Upvotes: 2
Reputation: 411
Make sure that the .htaccess
file is readable by apache
:
chmod 644 access/folder_name/.htaccess
And make sure the directory which contains .htaccess
is readable and executable:
chmod 755 access/folder_name/
Upvotes: 41