How to transfer a user to a new web page automatically

Updated: 11/30/2020 by Computer Hope
automatic web page transfer

Use the meta tag below to refresh your page to a new URL (Uniform Resource Locator), as shown in the example below.

<META HTTP-EQUIV="Refresh" CONTENT="2;URL=https://www.computerhope.com/">

Placing the tag above in your <head></head> will re-load the page to Computer Hope in 2 seconds after visiting the page containing the code.

Changing the 2 value on CONTENT="2" to another value increases or decreases the delay until loading the new page. To forward a user immediately, change the 2 to a 0.

Tip

If you're doing this for a page that you've moved permanently, we suggest using a 301 redirect instead of the above method. Not only will this help your users, but it also prevents any loss in search engine rankings.