Page 1 of 1

php redirect

PostPosted: 01. May 2008 23:37
by BobbyS
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

PostPosted: 02. May 2008 09:08
by Wiedmann
I get an error message either way. Can somebody please help me?

Not without the error message.