Hi, Let's say i own domain1.com, i want all the visitors that will enter this domain, will see the content of the whole site for 1 minute, then, automatically, regardless what content they are browsing in domain1, they will be redirected to domain2.com, how can i do that? appreciate if someone can help Thank you
session_start(); if (!isset($_SESSION['minute']) { $_SESSION['minute'] = time(); } else { $delay = time() - $_SESSION['minute']; if ($delay >= 60) { header("Location: http://www.yournewdomain.com"); } } PHP:
<?php header('Refresh: 60;url=http://www.domain2.com'); ?> PHP: Edit: just realized not what you wanted, id go with the above example.
And what if he'll click on another link in his page ( let's say, another article ) ? It'll start to countdown from 0 again and again ..