Groups | Blog | Home
all groups > dotnet general > november 2005 >

dotnet general : Grabbing URL of a URL rewrite



darrel
11/7/2005 6:42:00 PM
We're using URL rewriting (Isapi Rewrite). Is there any way to grab the
pre-rewritten URL or can you only grab the rewritten one?

I'm assuming you can't (as that's sort of the point of URL rewriting), but
thought I'd ask...

-Darrel

Frank Postle
11/8/2005 1:12:05 PM
What I have done is save the prior url in a header before we rewrite it.

I think that approach is pretty standard. I assume you are using a product
called ISAPI rewrite then you can rewrite a header like:

RewriteCond URL (.*)
RewriteHeader Old-URL: ^$ $1

Regards

Frank

[quoted text, click to view]
AddThis Social Bookmark Button