How to Redirect to Another URL in HTML

How to Redirect to Another URL in HTML thumbnail
Redirect your visitors to the correct URL.

If you have recently changed the URL of your website, you will have to deal with visitors continuing to go to the old location for a while. You can set up a link to the new URL on the the old page, but this requires the visitor to actively click on the link. A smart Web designer will set a page to automatically redirect to the new URL using a simple HTML code. This code can be modified as needed and can be implemented right away.

Instructions

    • 1

      Open the HTML file of the Web page that will include the redirect in a text editor.

    • 2

      Paste the following code between the <HEAD> and </HEAD> tags:

      <meta http-equiv="REFRESH" content="0;URL=http://www.example.com">

    • 3

      Set the content number to the number of seconds that you want the browser to wait before redirecting the visitor. This is useful if you want to include a message in the body of the website that the user can view before being redirected.

      If you leave the number set to 0, the visitor will be redirected immediately.

    • 4

      Replace "www.example.com" with the URL of the website that you want the visitor to be taken to.

    • 5

      Save the file and upload it to your Web server.

Related Searches:

References

  • Photo Credit Jupiterimages/Photos.com/Getty Images

Comments

Related Ads

Featured