Browser Redirection Using Refresh Meta Tag

The refresh meta tag allows for the browser to be refreshed, either staying on the current page or transferred to a different website.

If you have an old website domain which has been superseded. This may be a means to provide a message to your website visitors, advising them of the change and then after a period of time moving them on to the new domain.

Here’s an example of its use:

<meta http-equiv="refresh" content="5;url=http://www.example.com/" />

In the example above the browser will wait for 5 seconds before moving the visitor along the website at www.example.com.

The above meta refresh should be included within the <head> section of the website HTML code.

has the advantage in that its not reliant on JavaScript being enabled

It should be noted that with visitors suddenly being moved onto a site, there is the danger that this will look to be suspicious and possible security issue.

For clarity you may wish to include a countdown timer to the redirection action.