Code to redirect basic html page

Advertisement:

redirectWe have seen many plugins and 301 redirection … bla bla bla in wordpress and many other blogging platforms, to redirect the users automatically from a webpage to another webpage or from one domain to another.

Ex:- You have shifted an article to different page and now you want your visitors to automatically get redirected to the new page, instead of showing the link “click here to Enter” etc and expecting your visitors to click that link and read the article.

But many people using basic html face problem using the redirection. They need to manually create a link to navigate to different pages..this can be avoided by using these simple codes

<meta http-equiv=”refresh” content=”0; URL=http://www.google.com/”>

This code should be placed between head tag. And replace http://www.google.com/ to whatever URL you want your visitors to be redirected.

Another method is to use this code…

<script language=”javascript” type=”text/javascript”>window.location=”http://www.google.com/”;</script>

Here also replace http://www.google.com/ to whatever URL you want your visitors to be redirected.

Using such redirection may not be SEO friendly, but use it when its very much needed.

But people using WordPress, blogger etc, please do not use this type of redirection. There are many SEO friendly redirection methods that you can incorporate and save your Search engine juice.

Leave a Reply