redirect to the current page
<p>What is the best way to redirect the user coming from one URL to another?</p>

<p>I have 2 locations.</p>

<p>http:mysite.com
<a href="http://public.mysite.com" rel="nofollow">http://public.mysite.com</a></p>

<p>I want the users who type <a href="http://mysite.com" rel="nofollow">http://mysite.com</a> to be redirected to <a href="http://public.mysite.com" rel="nofollow">http://public.mysite.com</a>
It would have been easy if there were 2 different index.php files, but the index.php file is the same in both the cases.</p>
