A custom 404 page gives visitors a useful destination when a requested page does not exist.

Before you begin

Log in to the secure Gigatech client area at https://portal.gigatech.nl, open the relevant hosting service, and use the cPanel login action. cPanel labels can differ slightly by theme, version, and hosting configuration.

Steps

  1. Create a lightweight 404.html page containing navigation back to the website.
  2. Upload the file to the correct document root.
  3. Back up the existing .htaccess file.
  4. Edit .htaccess and add the ErrorDocument directive shown below.
  5. Save the change.
  6. Visit a deliberately nonexistent URL on the domain and confirm that the custom page appears with an HTTP 404 status.
  7. Check application routing if the custom page does not appear.

.htaccess directive

ErrorDocument 404 /404.html

Important notes

  • Keep the 404 page independent of database and application functions so it still loads during an application failure.
  • Do not redirect every missing URL to the home page with a 200 status.

Need help?

Open a Gigatech support ticket and include the domain, the exact action, the time of the issue, and any safe error message. Never send passwords, private keys, full database exports, or authentication secrets in a ticket.

Hai trovato utile questa risposta? 0 Utenti hanno trovato utile questa risposta (0 Voti)