Knowledge Base›Webhosting›Error 403 Forbidden

Webhosting – Error 403 Forbidden

On this pageWhen to use this guideError 403 ForbiddenFixing Error 403Frequently Asked Questions

Need help with your website? Find your specialist on VEDOS Profi ⧉.

In this article you will learn:


When to use this guide


Error 403 Forbidden

You can recognize error 403 by the large heading Forbidden at the top of the page. Below the heading you will find a more detailed description of the error. The browser tab shows the text 403 Forbidden.

Page with the 403 Forbidden error
Page with the 403 Forbidden error

Fixing Error 403

Error 403 can have various causes. Based on the message below the heading Forbidden you can isolate the specific cause, but if you are not sure, go through the whole procedure.

The steps of this procedure are:

When verifying the solution, reload the page using the keyboard shortcut Ctrl + Shift + R, which bypasses the browser cache. If the shortcut does not work, clear your browser cache.

Fixing file permissions

Fixing file permissions allows the browser to access all files and folders of your website. Restricted permissions are one of the most common causes of Error 403.

Fixing file permissions can take up to several tens of minutes, depending on the number of files in your Webhosting.

Follow these steps:

  1. Log in to the Customer Administration ⧉.
  2. In the top menu, select Hosting services Webhosting or WMS.
  3. Select the service whose file permissions you want to fix.
  4. In the left menu, select Tools.

In the box Fix file permissions click the button fix file permissions.

Fixing Webhosting file permissions
Fixing Webhosting file permissions

If fixing the file permissions did not help, continue with checking the files on FTP.

Checking files on FTP

Before making any changes on FTP, we strongly recommend backing up your files following the guide Webhosting – Backup.

If the problem with accessing the files was not caused by their permissions, the files required to run your website are probably damaged or deleted.

To continue, log in to FTP, for example via the WebFTP ⧉ (manual) using the main FTP account. If you do not know the login details, follow the guide Webhosting – FTP Accounts. 

First, check that the root directory contains only the folders session, tmp and www.

The session, tmp and www folders in the FTP root directory
The session, tmp and www folders in the FTP root directory

If any of the folders is missing, create it (you can find detailed instructions in the article Webhosting – Basic FTP Directory Structure). If you see completely different folders, first make sure you are really in the account’s root folder, which is accessible to the main FTP account only.

In the next step, verify that the folder www contains:

  • The file .htaccess (including the dot at the beginning).
  • The website files, including the file index.html (alternatively index.php), the folder domains (or subdom), or both.
The www folder with the .htaccess and index.html files and the domains and subdom folders (optional)
The www folder with the .htaccess and index.html files and the domains and subdom folders (optional)

If the file .htaccessis missing, restore it in Tools Webhosting (the same way as for fixing file permissions, but use the box Restore default .htaccess). 

If the folder www content management system files (for example, WordPress), upload the .htaccess file from a working installation or a backup here. The default .htaccess will probably not work. This applies only to a single website in the www folder. If you have multiple websites (aliases or subdomains), the default .htaccess, which routes traffic to the domains and subdom folders, must remain in place.

If the file index.html or index.phpis missing, restore it from a backup or from a working installation of the content management system. If your website is in a subfolder of the directory domains (or subdom for subdomains), you do not need an index file in the www folder. If both files exist, the website displays index.html. You can find more details about subdomains in the article Webhosting – Subdomains.

If both the website files and the folder domains (or subdom) are missing, the website has been completely deleted. If you do not have your own backup, you can try to request ours following the guide Webhosting – Backup.

Finally, check the contents of the folder domains, or subdom. 

  • The folder domains should contain further folders named after the full domain names or subdomains on which your websites run. The website itself should be only inside these folders, that is, again the files index.html, or index.php.
  • The folder subdom works similarly to domains, but it contains folders named after subdomains without the domain extension. Inside these folders are the files index.html or index.php.
Sample folder www/domains/wds-test.cz containing the file index.php
Sample folder www/domains/wds-test.cz containing the file index.php

If all files are in order and Error 403 persists, check the contents of all .htaccess files for code that blocks content following this pattern:

order deny,allow
deny from all      // deny access to everyone
allow from X.Y.Z.W // allow access to the listed IP addresses

This code displays Error 403 to anyone who tries to view the content of the folder it is located in from an IP address other than those in the list allow.

Activating HTTPS

Error 403 may not be related to the certificate, so go through the previous steps first. In some cases, Error 403 may be caused by an HTTPS configuration problem. Follow the guide Webhosting – Manual HTTPS Setup check that your domain has been added to a certificate that has been active for at least 30 minutes.

Checking the content management system settings

Content management systems (typically the WooCommerce plugin for WordPress) may restrict access to certain file types. If you observe Error 403 for files of a certain type, in a certain folder, or for requests to /wp-json/, which otherwise appears to be fine, check the CMS or plugin settings. The reason for the block may be shown in the webhosting error log, which is disabled by default and can be enabled temporarily.

Support intervention

If nothing in the procedure above has fixed Error 403, you can ask Support to review the problem.

Support will not carry out the fix for you, it can only point out a possible source of the problem. You can find detailed information about the scope of Support work on the page Customer Support ⧉.

Follow these steps:

  1. Activate temporary FTP access for Support following this guide.
  2. Contact Support via the form ⧉. State the website name, a thorough description of the problem (e.g. if the error appears only in specific cases), and the information that temporary FTP access has been activated.
  3. Wait. If the intervention takes longer than the period of the temporary FTP access, keep it open.

Frequently Asked Questions

What if nothing in the guide helped?

Request Support intervention ⧉ and wait for a response. These interventions go beyond standard support, so handling the request may take much longer than the usual response time.

Can I make sure the correct permissions are also set for newly uploaded files?

Not from our side. Check the manual of your FTP client or of whatever other mechanism you use to upload files. Alternatively, you can fix the permissions with your own PHP script run periodically using CRON.

I set up WordPress security following this guide ⧉ and now I cannot get into the administration because of Error 403. What should I do?

Check that you are really accessing from an IP address allowed according to chapter 2 of the article ⧉. If you cannot rely on the connection under a given IP address, it is better not to use this security method.

Does Error 403 occur elsewhere than at WEDOS?

Yes, it is a common error caused by the unavailability of key files on the server. The server (Webhosting) works without a problem, and the fix consists of setting the correct file permissions and verifying access to the key files of your website.

After uploading my website via FTP, I see error 403 or a blank page. Where do the files belong?

A single website belongs in the folder www, while the website of a domain or subdomain belongs in www/domains/full-domain-name, or www/subdom/subdomain-name. The folder must contain the file index.html or index.php, then fix the file permissions. For details, see checking files via FTP.

Was this article helpful?

Your feedback helps us improve our articles.

Your message goes to the documentation team, who do not reply to it. If you need help, contact us using the contact form. Do not include passwords or personal data.

Didn't find what you were looking for?

Ask other customers on the Help community website.