473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Response.Redirect() converts relative URL to absolute URL

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
Apr 24 '06 #1
2 4830
/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" <Pa**********@discussions.microsoft.com> escreveu na
mensagem news:FB**********************************@microsof t.com...
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

Apr 24 '06 #2
see UseFullyQualifiedRedirectUrl in web.confgiuration.

-- bruce (sqlwork.com)

"Paul Bonfanti" <Pa**********@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
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

Apr 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: VapidGav | last post by:
Ok I am going a bit insane here. I have written a class which handles redirects to certain pages according to database settings. When I use the response.redirect from within my class I get this...
2
by: WJ | last post by:
1. I have a website called "myWeb" resides under E:\SOS\myWeb.Net" folder in an IIS-6/Windows 2003 server. Its host-header is "myWeb.Net". 2. Default page is "Index.aspx". 3. In the same...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
1
by: Andre Ranieri | last post by:
I have a quick question - I'd just like to have confirmation to be sure. I'm building an ASP.NET corporate site for my employer, some of the pages have e-commerce capability and will need to be...
1
by: Lionel | last post by:
Hi, I've a VB .Net web app (for example foo) on an internal server. In the intranet we can access this application like this : http://myserver/foo/index.aspx. Now we want to make this...
2
by: Mufasa | last post by:
What are the ramifications of changing from Server.Transfer to Response.Redirect? I need to keep track of the URLs being used. Can you do relative addresses through redirect? TIA - Jeff.
1
by: Rhiannone | last post by:
Can you use relative addressing when using response.redirect; i.e something that would look like this <% if session("superuser") <> true then response.redirect "../../../edit/logout.asp" %> or...
18
by: Paul Lautman | last post by:
JRough wrote: What do you mean by "redirect the output to Excel"??? Excel isn't a location, it's a spreadsheet program that some (but not all users) will have on their machine. BTW, Location:...
2
by: daveh551 | last post by:
Okay, I asked a question a week or so ago asking for an explanation on relative URL's and the "~" symbol, and several people explained that the "~" is only usable when the URL is going to be parsed...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.