0 votes
by (1.4k points)

While accessing my website faced the 403 Forbidden Error. Despite the presence of a .htaccess, it still showing unable to read the htaccess file. Please help me how to deal with it.

Server unable to read htaccess file: 403 Forbidden error

You don't have permission to access / 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. 

1 Answer

0 votes
by (10.2k points)

Assuming you have .htaccess file in a target directory (if not, create one as shown below).

Solution: You need to change the directory permission to 755

cPanel way

File Permission in cPanel

FileZilla way

File permission: FileZilla

For more details on altering file/folder permission via FileZilla click here..

Specimen .htaccess file

If you want to create a fresh .htaccess file. You can use following script to paste into.

Order allow,deny
Allow from all
Require all granted