homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

redirection url
how to pass parameters to a url redirection

Msg#: 4456126 posted 9:10 pm on May 21, 2012 (gmt 0)

I am logging in from a main domain if the login is successful the user is redirected to a subdomain which is passed the login vars. In the browser a "/" is added before the ? and the parameters aren't passed getting an 404 error. I am sure there is a simple solution but have not been able to figure it out. I was wondering if someone could assist me?

With a domain http: //www.mydomain.com
which on successful login is redirected to:

http: //www.mydomain.com/clients.clientarea.php?op=clientarea&EmailAddr=futuremode@hotmail.com&Password=Um8TF83


header("Location: http: //www.mydomain.com/clients.clientarea.php?op=clientarea&EmailAddr=".$EmailAddr."&Password=".$Password, true);

but I get:

http: //clientarea.mydomain.com/clients.clientarea.php/?op=clientarea&EmailAddr=futuremode@hotmail.com&Password=Um8TF83

with the / added by the browser before the ?

How do I redirect using parameters without the / issue?



WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4456126 posted 9:22 pm on May 21, 2012 (gmt 0)

Use the "Live HTTP Headers" extension for Firefox to see whether the duff URL is immediately generated or whether something else redirects the request to that duff URL.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved