Problem with relative links after rewrite

Topics: User Forum
Jul 30, 2008 at 1:27 PM

I'm having a problem with relative links once a URL has been rewritten.

Rewritten URL:

Which goes to:

All the relative links on details.aspx will now go to:

So that a link which looks like this:
<a href="MoreDetails.aspx?id=123">See more details</a>

Which should go here:

Actually goes here:

This page does not exist, and no rewrite rules match so the user will get a 404 error.
Is there any way to make realtive links ignore the rewritten URL path? Or are there any other solutions to this problem?
Jul 31, 2008 at 8:38 PM
one option is to examine the HTTP_X_REWRITE_URL server variable and set your links appropriately.

another option is to introduce a rule for handling
Sep 26, 2008 at 8:19 PM
Edited Oct 1, 2008 at 5:41 PM
I am having the same issue. Can you please explain what and how to use HTTP_X_REWRITE_URL?
Wait, OK, after searching the net for 2 hours, and thinkging about it a day or two later, I remembered to search the wonderful ReadMe-1.2 file that came with the dll.

After search for HTTP_X_REWRITE_URL in the readme, I understand that the [U] flag will preserve and pass on the original URL.

Cheeso, you could have just told me to check the readMe; you have to remember that most Windows users don't know to look in the Readme file. This stupidity has been promoted for years by M$ with their lack of documentation. ;)

Anyways, I will post back to see if this resolves my issue.
Oct 1, 2008 at 9:26 PM
check the readme.  :)

I wasn't ignoring you or being petulant. I was just busy with other things.
(this is a volunteer effort)

Glad you made progress.