Creating a Timed 404 Re-direct Webpage

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 sometimes 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=https://domain_name.com/”>

    “content=10” – indicates the time (in seconds) until the page changes to the URL.

    “;url=https://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 page

This 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.

AC
Arnel Custodio Content Writer I

As a writer for InMotion Hosting, Arnel has always aimed to share helpful information and provide knowledge that will help solve problems and aid in achieving goals. He's also been active with WordPress local community groups and events since 2004.

More Articles by Arnel

Was this article helpful? Join the conversation!

Server Madness Sale
Score Big with Savings up to 99% Off

X