Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

redirection url

how to pass parameters to a url redirection

     
9:10 pm on May 21, 2012 (gmt 0)

New User

joined:May 21, 2012
posts: 1
votes: 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

using:

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?
9:22 pm on May 21, 2012 (gmt 0)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 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.