469,926 Members | 1,524 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

Redirect Issue

hi

i am having a problem with redirect. the page which works fine with my localhost, when copied to a different server doesnt work. the code is below

<?
session_start();
if(!session_is_registered(myusername)){
header("location:template.php");
}
?>

<html>
<body>
<?php
header( 'Location: showrec.php' ) ;
?>
</body>
</html>

when copied to a differnt server it stops redirecting the page and sits there. please help
Jul 18 '07 #1
1 1022
nomad
664 Expert 512MB
hi

i am having a problem with redirect. the page which works fine with my localhost, when copied to a different server doesnt work. the code is below

<?
session_start();
if(!session_is_registered(myusername)){
header("location:template.php");
}
?>

<html>
<body>
<?php
header( 'Location: showrec.php' ) ;
?>
</body>
</html>

when copied to a differnt server it stops redirecting the page and sits there. please help
Make sure you have all your files in the right path (dir/folder)

nomad
Jul 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Peter Row | last post: by
2 posts views Thread by Brian | last post: by
1 post views Thread by Andy Todd | last post: by
10 posts views Thread by Johnny Fugazzi | last post: by
5 posts views Thread by DougS | last post: by
5 posts views Thread by Seb | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.