quick question about redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stickman373
Forum Commoner
Posts: 30
Joined: Mon Jul 22, 2002 10:26 am

quick question about redirect

Post by stickman373 »

When i use

Code: Select all

header("Location: index.php");
it doesnt show the url of page i am redirecting to in the address bar, is there a way to show the new pages url instead of the page u redirected from?
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

If you have a domain which is just used as a mask for your webhost then its gonna stay the same.

Eg: You have http://www.somedomain.com

but your host is http://www.yahoo.com and your domain is just redirecting to yahoo underneath, eg: your DNS info isn't set with Yahoo's then anyway you redirect the site's address wont show.
Post Reply