Rewrite based on Map

Topics: User Forum
Mar 15, 2012 at 4:32 PM
Edited Mar 15, 2012 at 4:39 PM


I have installed iirf 2.1 32bit, server wide on windows 2003 server, IIS 6 and I have created ISAPI filter. I have tried to run rewrite rule below;

RewriteRule ^/(.*)   /urunler.asp?GET=urunkategori&kategoriID=121  [U,L]

worked fine and displayed "" on address bar then I have tried example below;

RewriteLogLevel 1
RewriteLog d:\temp\iirf
RewriteEngine ON
StatusInquiry ON

# load in the products map
RewriteMap  productmap   txt:D:\webfolder\ugurmustafa\\www\urunler.txt

# rewrite any requests for product info as appropriate
RewriteRule ^/(.*)/Info   /urunler.asp?GET=detay&UrunID=${productmap:$1|11111}  [L]

It doesn't work and displayed i have created product list as 5 digits products, I have followed example but it doesn't work and no log file.

Thanks for help.


Mar 16, 2012 at 11:47 AM
Edited Mar 16, 2012 at 1:00 PM

Hi again,

I understood how works rewriting now. Is it possible to use Rewrite based on Map with Classic ASP?

Thank you

Mar 17, 2012 at 5:00 PM

Yes, Therre's a RewriteMap directive in IIRF.

The backend technology - classic ASP, PHP, ASPX - is moot.