Meta Refresh to Redirect

   Posted by David Kirk in 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.

 

About David Kirk

David Kirk is one of the original founders of tech-recipes and is currently serving as editor-in-chief. Not only has he been crafting tutorials for over ten years, but in his other life he also enjoys taking care of critically ill patients as an ICU physician.
View more articles by David Kirk

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply

You may also like-

Hotmail: Automatically Jump to Inbox when Signing InHotmail: Automatically Jump to Inbox when Signing InBy default, Hotmail will redirect you to Windows Live Home when you sign in or log on. This tech-recipe describes how to skip that ... Redirect webpages or URLs using .htaccessRedirect webpages or URLs using .htaccessThe .htaccess file is a powerful tool that most casual users have not yet discovered. Here I'll show how to use it to redirect ...