Freeeola Help & Support - Creating Custom Error Pages on Freeolas Hosting
Freeola Internet Get Dotted Domains Blog Guides Forums
Freeeola Help & Support - Creating Custom Error Pages on Freeolas Hosting
Menu

Freeola Guides


Creating Custom Error Pages on Freeola Web Hosting

By Freeola Support on 14th July, 2016 | 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 500 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 left hand navigation. You will then be given the option to regrade your VIP Hosting.

 

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. 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 specify a URL to the error page. If you enter the error page locations into the relevent input boxes and press Apply, the changes should take effect immediately.

 

Freeola VIP+ Custom Error Pages


Using .htaccess


If you would prefer not to upgrade your VIP Hosting, or are using the free hosting service, it is possible to set custom error pages using a .htaccess file. The steps for doing this are as follows.

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

    Warning:

    If you already have a .htaccess file on your website hosting, you would need to download this file an append the changes to the bottom.

  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 from the 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 .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 is a UK internet service provider offering the best value and extensive free services. Please compare our domain name registration prices or check out our UK high speed internet access. If you are in business please see examples of our free hosting at Freeola.com/customer-sites.

Safe and Secure Payment

Tell us what you think!

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.