Freeola Guides


Creating Custom Error Pages on Freeola Web Hosting

By Freeola Support on 10th May, 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.

If you would prefer not to use the standard Freeola error pages and are using the VIP Hosting service, the easiest way to set up custom error pages would be to upgrade to VIP+ Hosting from within your MyFreeola account and use the online control panel.

 

To do this, you would need to login to your MyFreeola account and select VIP Web Hosting from the Websites and Hosting section of the left hand navigation menu. You will then be given the option to regrade your VIP Hosting to VIP+.

 

Using VIP+

 

If you have VIP+ 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 VIP 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 not to upgrade your VIP Hosting subscription it is possible to set custom error pages using a .htaccess file, although is only recommended for more advanced users.

 

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:

Great services and friendly support
I have been a subscriber to your service for more than 9 yrs. I have got at least 12 other people to sign up to Freeola. This is due to the great services offered and the r...

View More Testimonials

Top-notch internet service
Excellent internet service and customer service. Top-notch in replying to my comments.
Duncan

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.