Response.Redirect() converts relative URL to absolute URL

Response.Redirect() converts relative URL to absolute URL

Post by UGF1bCBCb2 » Wed, 26 Apr 2006 06:08:01


A customer of ours using .NET 2.0 on Win2003 is seeing relative URLs passed
to Response.Redirect() being converted to absolute URLs in the Location
header. For example '/test.aspx' becomes
' http://www.yqcomputer.com/ '. We're not able to reproduce this on our
machines. Does anyone know of a setting or configuration that would cause
this behavior in Response.Redirect()?

Thanks,
Paul
 
 
 

Response.Redirect() converts relative URL to absolute URL

Post by Bruno Alex » Wed, 26 Apr 2006 06:30:57

/folder/test.aspx always represents http://www.yqcomputer.com/

~/folder/test.aspx represents the root of your website under VS2005
../folder/test.aspx represents that you get down 1 folder (../) and get into
"folder" folder

sometimes you can't use "../" and that's a flag in the IIS that you need to
active: the virtual root

--


Thank you in Advance.

Bruno Alexandre
(a Portuguese in Denmark)

"Paul Bonfanti" < XXXX@XXXXX.COM > escreveu na

 
 
 

Response.Redirect() converts relative URL to absolute URL

Post by sqlwork.c » Wed, 26 Apr 2006 10:07:10

see UseFullyQualifiedRedirectUrl in web.confgiuration.

-- bruce (sqlwork.com)