well lets say you want your homepage todo this:
domain.com
<html>
<head>
<?php
if ($_GET['r']==0 || !isset($_GET['r']))
{
echo "<META HTTP-EQUIV=" refresh" content=" 3;URL=/?r=1" >";
}
?>
</head>
<body>
</body>
</html>
thats the quick and dirty way.. when the page loads it tests to see if the QS indicates the page has been reloaded... if that QS var is missing or not set it will output the tag to refresh the page and include the QS var so it wont refresh again
a better way todo this would be with sessions or cookies... with either of those you essentially do the same thing as above except that you test against a session or regular cookie and write a session or cookie instead of redirecting to a url with the QS variable