Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Response.Redirect() converts relative URL to absolute URL

Reply
Thread Tools

Response.Redirect() converts relative URL to absolute URL

 
 
=?Utf-8?B?UGF1bCBCb25mYW50aQ==?=
Guest
Posts: n/a
 
      04-24-2006
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
 
Reply With Quote
 
 
 
 
Bruno Alexandre
Guest
Posts: n/a
 
      04-24-2006
/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)

"Paul Bonfanti" <(E-Mail Removed)> escreveu na
mensagem news:(E-Mail Removed)...
>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



 
Reply With Quote
 
 
 
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      04-25-2006
see UseFullyQualifiedRedirectUrl in web.confgiuration.

-- bruce (sqlwork.com)



"Paul Bonfanti" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Absolute url from relative path Andreas Zita ASP .Net 3 04-29-2008 08:52 PM
Relative URL to an absolute URL? John Nagle Javascript 3 02-26-2008 04:33 PM
Relative URL's to absolute URL's function ? wl ASP .Net 1 07-14-2004 10:28 AM
Invalid URL form or fully-qualified absolute URL was used. Use relative URLs Rudi Ahlers ASP General 11 04-11-2004 03:17 PM
Make a relative url path from an absolute path to another one Thomas Guettler Python 3 10-27-2003 04:41 PM



Advertisments