PDA

View Full Version : {Tutorial} Redirect your visitors without using JavaScript!


The Unknown
08-03-2007, 07:11 PM
There are many webmasters here. Many visitors have old browsers which do NOT support JS. So here is an method which will redirect your website\\\'s visitors without any JS. This uses PHP.
Server Requirement: PHP interpreter

<?php

header(\\\"Location: http://thinkdigit.com/\");

?>

The above code will work only if NO text is passed to the browser and i takes atleast 1 min. to redirect.
__________
Replace thinkdigit.com to with the page you want to redirect.

it_waaznt_me
08-03-2007, 09:23 PM
Javascript has the speed advantage. As it works on client side, time is not lost in transit.

mediator
08-03-2007, 09:56 PM
There's also the html tag...the easiest!

<META HTTP-EQUIV="Refresh"
CONTENT="5; URL=http://mediator.com">

The Unknown
09-03-2007, 12:03 PM
@it_wazznt_me

you are right. it is meant for old browsers who don't support JS.