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 |
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
August 4, 2008 at 4:43 pm
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.
August 4, 2008 at 5:21 pm
Indeed, but then again no redirect is search engine friendly.
August 23, 2008 at 3:46 pm
Thanks for this tutorial. I had been wondering how to do that until i read this.