Customisation of error pages

Procédure

What types of error pages can I customise?

You can customise error pages 400, 401, 403 and 404.

Explanation of error 400, Wrong request
The HTTP request could not be understood by the server due to incorrect syntax. The problem may be due to a web browser that is too recent or an HTTP server that is too old.

Explanations for error 401, Not authorised
The request requires user identification. In practical terms, this means that all or part of the server contacted is protected by a password that must be entered into the server in order to access its content.

Explanation of error 403, Forbidden
The HTTP server has understood the request, but refuses to process it. (This error appears when no index.html, htm or PHP page has been found at the root of the FTP account).
This code is generally used when a server does not wish to indicate why the request was rejected, or when no other response corresponds (for example, the server is an Intranet and only machines on the local network are authorised to connect to the server).

Explanations for error 404, Not found
The server has not found anything that corresponds to the address (URL) requested.
This means that the URL you typed or clicked on is incorrect or obsolete and does not correspond to any existing document on the server (you can try progressively deleting the components of the URL starting from the end to possibly find an existing access path).

How can I customise my error pages?

1. Connect to your hosting and click on Error pages

Customisation of error pages

2. Fill in the fields for errors 401,402,403,404 and indicate the location of the page (you must have created an html, php or htm page beforehand). Click Generate and copy/paste the code into your .htaccess file.

Customisation of error pages

Note: this procedure does not currently work with unfound files with the .php extension.

How do I customise error pages?


Why customise error pages?

When you design a website. It can happen that your visitors end up on a page of your site that no longer exists. For example, when you create the www.exemple.com site. This site obviously has several pages... And, as your site becomes better known, other Internet sites put your links on their pages. However, if you modify this page, the visitor will be taken to an error page.

Conclusion

You can now create custom error pages on your shared hosting with LWS.

Don't hesitate to share your comments and questions!

Rate this article :

2.1/5 | 9 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

1mn reading

How do I configure PHP on my hosting?

2mn reading

How do I create a cron job?

0mn reading

How to access Apache / Php logs

2mn reading

How do you change the PHP version of your Joomla site to 7?


Ask the LWS team and its community a question