Response.Redirect() converts relative URL to absolute URL

G

Guest

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.myserver.com/test.aspx'. 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
 
B

Bruno Alexandre

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

~/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)
 
B

bruce barker \(sqlwork.com\)

see UseFullyQualifiedRedirectUrl in web.confgiuration.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top