Redirects and custom error pages

Web Hosting & cPanel

0 people found this article helpful

A redirect sends visitors from one address to another, for example from an old page to its new address. A custom error page is what visitors see when a page doesn't exist (error 404). You set up both in cPanel.

Video: Redirects and custom error pages

Watch the video (1 min 55 s, with narration) – or follow the steps below.

Add a redirect

  1. Log in to cPanel (see Log in to cPanel from the client area). In the section Domains, click Redirects.

  2. Under Add Redirect, fill in:

    1. Type – Permanent (301) for an address that has moved for good (search engines take over the new address), Temporary (302) for a short time.
    2. The domain the old address belongs to, for example mallawebstudio.co.za.
    3. The rest of the old address after the domain, for example old-page. Leave it empty to redirect the whole domain.
    4. Redirects to – the full new address, starting with https://.
    5. www. redirection – usually Redirect with or without www., so that both versions of the address are redirected.
    6. Click Add.
    The form Add Redirect with Type Permanent 301, the domain mallawebstudio.co.za, the path old-page, the new address and the www option

Your redirects are listed below the form under Current Redirects, where you can also remove them.

Good to know: to send every visitor to the secure https:// version of your site you don't need a redirect – use Force HTTPS Redirect instead, see Always open your site with https://.

Make your own error page

  1. In the section Advanced, click Error Pages.

    1. Under Managing, choose the domain.
    2. Click the error page you want to change, usually 404 (Not found).
    The Error Pages page with the domain selection and the list of common error codes, including 404 Not found
  2. The editor for 404.shtml (Not found) opens:

    1. The buttons under Select Tags to Insert add details to the page, for example Requested URL (the address the visitor tried to open).
    2. Type the text or HTML of your error page in the editor, for example a short apology and a link to your home page.
    3. Click Save.
    The editor for the 404 error page with the tag buttons, the editing area and the Save button

If you use WordPress or another program that has its own error page, you don't need this – the program shows its own page.

Related articles

Need help? Open a ticket or call us on 082 412 6556.


Was this answer helpful?

Powered by WHMCompleteSolution