How to Get the Friendly URL generated by IIRF by ASP?

Topics: Developer Forum, Project Management Forum, User Forum
May 18, 2011 at 10:03 PM

thank you very much for your component but I have an issue..

I'm using the IIRF on my IIS on IIS ISAPI FILTER and selecting the Dlll..

the rules are working really really fine..

But is there a way to get the friend url on asp?

I've tried the asp request.servervariables but I didn't get the "friendly url"

Also, I've tried Request.ServerVariables("HTTP_X_REW

RITE_URL") but that command doesn't return anything.

could you please help me on this?

Thank you VERY MUCH
May 19, 2011 at 9:03 AM

Are you using the [U] flag in your rule?

According to the documentation, you need that flag.

May 19, 2011 at 2:50 PM

Hi Cheese.. THANK YOU VERY MUCH.. I've been looking for it and never found it.

it worked a lot!


I'm gonna make a donation right now!

Tks a lot

May 19, 2011 at 2:56 PM

just a comment.. It says that USING THE HTTP_X_REW RITE_URL and "U" flasg I will get the ORIGINAL FILE...

What I need is the rewriten url.. and its working perfectly...

But i have an issue.. the documentation says that I'll get the ORIGINAL ADDRESS...  but the original page is "costumer.asp" file... and Rewriten is

What I'm getting by requesting THE HTTP_X_REW is ( and thats what I need )

So Is that working like its sopose to work?

May 19, 2011 at 10:07 PM

yes - I think you are not clear on the terminology.  The IIRF rewrites from the original (/page/customer/john) to the rewritten address (customer.asp).  This is how rewrites work, this is how you describe rewrites. Rewrite FROM the thing the user types into the address bar and rewrite TO the different URL that gets executed on the server.

And yes, that is how that server variable is supposed to work. Check the documentation for full details.