"Just a shilling a week for you Sir, or you Madam."

For less than 5p per week, we'll give you a domain, email address & website.

2 years for the price of 1 on all UK domains. While offer lasts.|Register Now!

Freeola Guides


Creating Custom Error Pages on Freeola Web Hosting

By Freeola Support on 18th July, 2019 | 1 Comment(s)

Welcome to the Freeola Internet customer support pages. This guide is designed to help with creating custom error pages for your website. For more internet help topics please visit our main Support Page.

There are many situations where errors may be encountered by visitors of your website. When these errors occur, usually the visitor is sent to a standard Freeola error page describing the issue.

As the web designer, you may prefer to have your own error pages in place which fit to the style of your website and allow the visitor to be pointed in the right direction after being informed that the error was encountered.

 

Your visitors could encounter an error page in any of the following situations:

  • When creating a website which may change regularly, or has previously used a different structure, you may find that users that attempt to access pages which no longer exist and are shown a standard Freeola 404 error page. Causes of this error may include outdated links from other sites, outdated bookmarks, or outdated search engine listings.

  • If you are password protecting some directories within your website, and a visitor attempts to access these directories without the correct login details, they may encounter a 401 error page informing them that authorisation is required.

  • If you have not yet uploaded a website, or have directed the visitor to an empty directory, a 403 access forbidden error may display.

  • On websites which run several scripts, it is possible one they may fail due to a scripting issue. If this happens the visitor would be sent to an error 500 page advising them that there was an internal issue or an issue running a script.

Using Freeola Web Hosting

 

If you have Freeola Web Hosting, you can set up custom error pages from within your MyFreeola account. To do this, you will need to login to your MyFreeola account and select Web Hosting from the left hand navigation, found under the Web Sites & Hosting header. If you then press Go To Settings from beside the relevant hosting package, you will be taken to the hosting control panel.

From here, you will need to select Set-up Error Pages to be taken to the Custom Error Pages configuration. For each Error Type, you will be given the option to select a page from your uploaded files to display when a visitor generates the respective error. Once you have made your selections, click Apply.

 

Freeola VIP+ Custom Error Pages


Using .htaccess


If you would prefer, it is possible to set custom error pages using a .htaccess file, although is only recommended for more advanced users who are not using our paid-for Freeola Web Hosting services.

 

The steps for doing this are as follows.

  1. Firstly you would need to open Notepad (or your favourite text editor) and create a file called .htaccess.

    Warning

    If you already have a .htaccess file on your website hosting, you would need to add the following to the bottom of the existing file.

  2. You would then need to add a line of code in the following format for each error code that you would like a custom page for, where XXX is the error code and errorpage is the location of the error page within your htdocs directory.

    ErrorDocument XXX /errorpage

    Examples of this in practice could be as follows.

    ErrorDocument 404 /error404.html

    Any visitors that follow and outdated link to a no longer active page will be sent to a document called error404.html within htdocs.

    ErrorDocument 403 /forbidden.html

    This will send any users that attempt to access something that they are not permitted to, to a page called forbidden.html within htdocs.

    ErrorDocument 500 /errordocs/scripterror.html

    If there is a scripting error, the visitor will be sent to a page called scripterror.html within an errordocs folder inside htdocs.

  3. Finally you should upload the new (or edited) .htaccess file to the htdocs directory on your hosting. You can then test each of the error scenarios by creating situations where these errors would occur. For example, visiting a page that does not exist to test your error 404 page.

htaccess custom error pages


Did you find this article helpful?

Yes | No


Article Comments (1)
Add your comment:

Comments are limited to 750 characters, you have 750 remaining.


Avatar
thecapedcrusader commented on 24th May, 2015:
Since .htaccess is often a hidden file format, (indeed most files with a . prefix are), you may need to rename the file before downloading it, otherwise it may be hidden from view and you won't be able to edit it.

Freeola & GetDotted are rated

Check out some of our customer testimonials below:

It is really great!
Your service is the best I have ever seen. It is really great, and very easy to use. Your control panel is especially finely tuned. It's great! Everything about Freeola is ...

View More Testimonials

Thank you to all the team, for all the service I have received in the past.
I am simply writing to say a big Thank You for the excellent free service you provide. I have been one of your customers for many years and am still amazed as I was at the ...

View More Testimonials

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Hide Feedback Tab

Live Chat is offline

Live Chat is available:
9am to 6:30pm Monday to Friday (excluding bank holidays).

01376 55 60 60

Send us a ticket.

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.