Difference b/w REDIRECT_URL and REQUEST_URI

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Difference b/w REDIRECT_URL and REQUEST_URI

Post by anjanesh »

Hi

Whats the difference between $_SERVER['REDIRECT_URL'] and $_SERVER['REQUEST_URI'] ?
Both seem to return the same value always.

Anyone know a situation where the values are different ?

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

REDIRECT_URL may or may not exist, REQUEST_URI most often will exist.
Post Reply