Sometimes you may find it necessary to create or modify a web page so that it displays for a period of time, then jumps to another page. In HTML, the code for this is somtimes called a meta refresh redirection. The page will display for the period of time that you designate and then jump to the URL that you have indicated in the code. The following article explains how to make this change using a 404 error page as an example of an HTML page that can use this type of redirect.

Using the META refresh tag for a custom 404 error redirect page

  1. Login to the cPanel.
  2. Make a custom 404 page. You can use the cPanel tool to do it, or you can manually create the page. Here are the step-by-step instructions on how to create a custom 404 page.
  3. Once you have created the the custom 404 error page, edit the file and add the following code:
    <meta http-equiv="refresh" content="10;url=http://domain_name.com/">

    "content=10" - indicates the time (in seconds) until the page changes to the URL.

    ";url=http://domain_name.com"> - this portion of the code shows the URL that page will redirect after the designated time has expired.

  4. SAVE the page with the code that you have added.

Sample of a possible 404 redirect pageThis completes the tutorial for creating a timed 404 redirect page. Adjust the time as necessary and make sure to add a link in case the re-direct does not occur correctly. Test your custom 404 page by creating a bad link by misspelling a page or subdomain under the main domain for your website.

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 this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

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!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!