The meta refresh tag can be used in a variety of ways, and one of them is to provide a timed redirect to another page. A good example of where this can be used is the 404 error page. A custom 404 page can be created and include the meta tag so that it redirects to a more useful page for a website visitor. The following tutorial walks you through making a 404 error page with the meta refresh tag.

Creating a custom 404 error redirect page with the meta refresh tag

  1. Login to the cPanel.
  2. Use the cPanel tool to create a custom 404 page.
  3. When you are creating the custom 404 error page, add the following code towards the bottom of the file:
    <meta http-equiv="refresh" content="10;url=http://domain_name.com/">

    "content=10" - the number of seconds the page will remain on display before it redirects to the URL.

    ";url=http://domain_name.com"> - this portion of the code shows where the page will redirect.

    Make sure that you add an alternate link on the error page so that your customers can elect to click on it or simply wait for the page to automatically jump to your designated web page

  4. SAVE your custom error page.

Sample of a possible 404 redirect pageTest your custom 404 page - you can use a bad link or create one by simply adding a bad link after the primary domain in browser. You may need to change the time that the page will display. Make sure that you have provided a link that a customer can click on if they don't want to wait, or if the re-direct simply does not work.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Help Center:
Email Address
Optional, but our team may contact you for more information.
Did you find this article helpful?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.