I am trying to test a php redirect and cannot get it to work. Here is what I am doing.
I make a new file called something.php
In this file I put this code
header( 'Location: http://www.anywhere.net' ) ;
I call it with http://localhost/mysite.com/something.php
I have tried putting this file in htdocs as well as in mysite.com and cannot get it to work. I get an error message either way. Can somebody please help me?