Meta Refresh to Redirect

Contributor Icon Contributed by David Kirk     
Tag Icon Tagged: HTTP  

This tech-recipe describes how to easily redirect a web visitor using meta refresh.


This recipe describes the meta refresh technique of redirecting users. By placing this tag in your head section of your html file, the user will be directed to another page after a set number of seconds.

<meta http-equiv="refresh" content="10; URL=http://www.tech-recipes.com">

By placing this code in the head of your page, visitors will be directed to tech-recipes after 10 secs. 0 secs will try to transfer the visitors as soon as possible.

Just change the url above and bounce your visitors to the correct page.

Using 301 redirects are much safer and are more search engine friendly.

 

No Comments -


No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment -