php redirect
Posted: 01. May 2008 23:37
hello,
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
<?php
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?
Thanks,
BobbyS
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
<?php
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?
Thanks,
BobbyS