Error 403 visiting my web page, how to fix it

Error 403 can be a symptom of 3 main problems:

  1. The lack of an index.html or index.php page
  2. The incorrect configuration of .htaccess (must at least contain a valid directive eg: Options -Indexes), obviously other directives must also be valid.
    1. We recommend the following minimal directives in the .htaccess of each subdomain and possibly of the additional domain as well:

      Options -Indexes
      DirectoryIndex index.html index.php

  3. Assigning incorrect permissions for a folder (see at the bottom of this document for the correct permissions).

N.B: Provided that these 3 rules above are respected, it is not possible to see an error and if you still see it it is likely that it is a poorly written script, in these cases it is necessary to check if the status of our servers is ok: https://www.4host.ch/clienti/serverstatus.php

Before trying the domain and subdomain recovery mode from cPanel we recommend checking that the folder properties are ok with Filezilla or another ftp program (according to the properties we have published at the bottom of this document), this is to avoid losing their contents. , possibly downloaded before proceeding the entire folder locally!

In rare cases it is possible that after a cPanel update, some permissions of a folder have been changed, it is therefore possible to resolve this anomaly, restoring the correct permissions to the document_root (root document) of a particular subdomain or additional domain, simply by performing this short procedure which will then also be available in our frequently asked questions within the 4host customer area:


These are the properties that folders must have for your web hosting to function properly:

  • public_html > 0750
  • subfolders within public_html > 0755
  • subdomains > 0755
  • addon domains > 0750

All files must be 644 or less, anything above 644 may generate authorization errors (error 403) and the scripts you upload may no longer work properly!

Once these checks have been carried out, the website must no longer make 403 errors (access prohibited).

.

  • 403, errore 403
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Ho ordinato l'installazione di un CMS (Joomla, Drupal, Wordpress, ecc...) come faccio ad accedere al servizio?

Per accedere al servizio e per amministrare il cms seguire la seguente procedura: Accedere...

Quali dati FTP devo usare per caricare i files su Windows 2008 R2 (Enkompass)?

Quando 4Host prepara per il cliente il servizio, viene creato un nome account per l'hosting...

Non visualizzo la mia pagina web: Impossibile contattare il server

Se vi appare un messaggio che indica l'impossibilità di contattare il server le...

Cosa devo fare se voglio cambiare sistema operativo da linux a windows o viceversa del mio attuale servizio?

Per cambiamenti di sistema operativo es: Hosting all inclusive Linux > hosting windows è...

Ho dato la disdetta ma continuo a ricevere da voi le fatture, come mai?

Può capitare di dare la disdetta dopo che è già stata consegnata la fattura al cliente, in questo...