Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: virtual domains response.redirect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
eCommando
Newbie
Newbie


Joined: 04 August 2004
Location: United States
Online Status: Offline
Posts: 12
Posted: 08 July 2008 at 4:13pm | IP Logged Quote eCommando

Are there any easy ways to do server.transfer() or response.redirect() without going through all the codes for the site and changing the URLs to the absolute path?

Also, a lot of asp.net controls use "~/filename.aspx" in the attributes. Will isapi rewrite work with those controls if the URL is relative.

The site is in a virtual directory that is set as an IIS application.
Back to Top View eCommando's Profile Search for other posts by eCommando
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7468
Posted: 09 July 2008 at 7:52pm | IP Logged Quote Lexey

Server.Transfer should not be affected by rewriting.
And Response.Redirect should point to an absolute URI by RFCs (although relative URIs work in most cases, they are not RFC-compliant).
As for ASP.NET, most probably it will substitute ~ with a physical (rewritten) URL and not with the requested one.
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum