Response.Redirect() converts relative URL to absolute URL

Discussion in 'ASP .Net' started by =?Utf-8?B?UGF1bCBCb25mYW50aQ==?=, Apr 24, 2006.

  1. 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
     
    =?Utf-8?B?UGF1bCBCb25mYW50aQ==?=, Apr 24, 2006
    #1
    1. Advertising

  2. /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" <> escreveu na
    mensagem news:...
    >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
     
    Bruno Alexandre, Apr 24, 2006
    #2
    1. Advertising

  3. see UseFullyQualifiedRedirectUrl in web.confgiuration.

    -- bruce (sqlwork.com)



    "Paul Bonfanti" <> wrote in message
    news:...
    >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
     
    bruce barker \(sqlwork.com\), Apr 25, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. wl
    Replies:
    1
    Views:
    4,454
  2. =?Utf-8?B?QW5kcmUgUmFuaWVyaQ==?=

    Response.Redirect() and absolute URL links and User Control questi

    =?Utf-8?B?QW5kcmUgUmFuaWVyaQ==?=, Feb 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    984
    Steve C. Orr [MVP, MCSD]
    Feb 4, 2005
  3. Sal
    Replies:
    1
    Views:
    844
  4. Rudi Ahlers
    Replies:
    11
    Views:
    842
    Aaron Bertrand [MVP]
    Apr 11, 2004
  5. John Nagle

    Relative URL to an absolute URL?

    John Nagle, Feb 26, 2008, in forum: Javascript
    Replies:
    3
    Views:
    236
    John Nagle
    Feb 26, 2008
Loading...

Share This Page