403 Forbidden Error

If you see a 403 Forbidden error on your website, you may need to check a few things. We’ll outline a few scenarios that would cause this and how to resolve them.

.htaccess rules:

 

 

The most typical reason for a 403 Forbidden error is due to .htacess rules on your website. You’ll want to check your .htaccess rules to ensure they are correct & not causing a conflict.

The number one cause it usually due to .htaccess rules that attempt to force a specific PHP version. You may see some rules in your .htaccess file that look similar to the code below:

AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

In the event you have rules similar to the one shown above, these will need to be removed as they will not work on our servers. In order to change the PHP version on hosting with VeeroTech, you will need to use the PHP Version Selector.

The most common location (there may be multiple .htaccess files on your account) that we find have these rules is located in the /home/ directory, which is one directory above your public_html directory.

 

File & directory permissions:

Files & directories that do not have the correct permissions can also cause a 403 Forbidden error. If you see files & directories that are not set to the values shown below, you will need to change them. If you’re not familiar with how to do this, you can always contact our support department.

  • Files: CHMOD 644 permission
  • Directories: CHMOD 755 permission

If the steps above listed in this article do not resolve your issue, please feel free to open a support ticket and we’d be happy to take a look.

  • Email, SSL
  • 0 Χρήστες που βρήκαν αυτό χρήσιμο
Ήταν χρήσιμη αυτήν την απάντηση;

Related Articles

How do I upload files to my website?

You must either use FTP (file transfer protocol) client, or upload via our File Manager located...

I don't know what is FTP. Do you have some File Manager?

If you do not wish to use an FTP (file transfer protocol) client, you may use our file manager...

Where can I find my FTP information?

To find your FTP details, please log on to your control panel, click the 'View FTP Details' link...

Search engine friendly (virtual) URLs not working!

We use virtual user home directory paths so you can get errors when trying to setup search engine...

My website shows "Internal Server Error"

There are many different possibilities. And in most cases it is due incorrect .htaccess file...