Redirect your HTML pages without using Javascript or PHP

By on July 10th, 2008 in HTML, Tutorials
Quick links : comment, grab rss or contribute

This tutorial will show you to redirect users to another webpage without using header and other PHP methods. It’s actually very simple, just one line of HTML code.

Place the code in the head tag of you HTML page :

<meta http-equiv="Refresh" content="1; url=http://www.yoursite.com/newpage.html">

In the Content attribute there is the number 1, and an URL. The number 1 represents the number of seconds until the redirection is made, and the URL is the web address the user is redirected to.

For more tutorials head over to our tutorial site

You may also like (related articles)

  • Rob

    I should be worth mentioning that this approach is pretty crap for search engines.

    If however you have to use it I’d suggest that you replace the 1 with a 0 and make it almost instant.

  • http://www.crazyleafdesign.com Alex

    Indeed, but then again no redirect is search engine friendly.

  • http://sn.vc Rick Lim

    Thanks for this tutorial. I had been wondering how to do that until i read this.

  • http://www.patrickvalmont.com patrick

    dude thanks. This could be placed directly on the page after the user has submitted the form details, redirect in like 3 secs. cool. many thanks

  • http://www.patrickvalmont.com patrick

    Cool, tested, works

  • David

    Easy, simple, and it works quite well…
    actually, Rob is right… 0 instead of 1 makes it almost instant.


Elegant Wordpress Themes Design Freebies
Popular articles
We’re on Google
We’re on Twitter
We’re on Facebook
Sponsor
Now Hot on our Websites

Sponsors