Grabbing URL of a URL rewrite

  • Thread starter Thread starter darrel
  • Start date Start date
D

darrel

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
 
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
 
Back
Top