How do I create custom error pages?

123-reg hosting icon

This FAQ will help you to create custom error pages on your hosting package

123 Reg Hosting Packages allow you to create your own error pages for use when your website creates an error. They can be jovial, informative or a mix of both.


To create a custom error page, you will need to do the following:

1

Open Notepad or a similar text editor

2

Copy and paste the following text into your new .htaccess file:

ErrorDocument 400 http://www.mydomain.co.uk/400.html
ErrorDocument 403 http://www.mydomain.co.uk/403.html
ErrorDocument 404 http://www.mydomain.co.uk/404.html
ErrorDocument 500 http://www.mydomain.co.uk/500.html
3

Replace "mywebsite.co.uk" with your own domain name, then save the file with the file name ".htaccess"

4

Make sure that the file type is set to "All Files".

5

Click the "Save" button.

Tip:You will need to upload the error pages, e.g. 404.html


6

Upload the .htaccess file to your webspace.