How to Write a Redirect Code for Internet Explorer

Occasionally you may need to redirect a Web page to a new URL. This is often the case with large websites or when websites move to a new domain. By using a standard HTML redirect code, you can redirect the visitor to the new page without interruption of his process. Additionally, you can add a small delay to the redirect, displaying a message to the visitor letting him know why the page is redirecting him and preserving the integrity of the website. The HTML redirect works in all major Web browsers, including Internet Explorer.

Instructions

    • 1

      Open the file you want to add the redirect code to using an HTML editor or plain text editor such as Notepad.

    • 2

      Insert the following HTML code in the "<head>" section of the page:

      <meta HTTP-EQUIV="REFRESH" content="0; url=http://URL.com">

    • 3

      Replace "http://URL.com" in the above code with the URL you want to redirect the page to.

    • 4

      Change "0" to the number of seconds you want the page to delay before redirecting the visitor. This is useful if you've recently moved the Web page to a new location and you want to let your visitor know. If you do not want the page to pause before redirecting, leave this value at "0."

    • 5

      Save the file and upload the changes to your server.

Related Searches:

References

Comments

Related Ads

Featured