IIRF Mapping file based url rewriting

Jan 13, 2011 at 11:29 AM

I’m using IIRF url rewriting  based on Map. But it doesn’t appear to work

Below is text from the mapping file (travel.txt):

ABC    23435

and Rule from  ini file:

 RewriteLog  H:\inetpub\vhosts\private\iirf
 RewriteLogLevel 1
 RewriteEngine ON
 StatusInquiry ON

# load in the map
RewriteMap  locationmap   txt:H:\inetpub\vhosts\httpdocs\App_Data\travel.txt

# rewrite any requests
RewriteRule ^/travel/([^?/]*)$   /publish/location.aspx?pid=${locationmap:$1}  [L]

when I type in url 'http://www.xyz.com/travel/ABC'  in browser, I land at   ‘http://www.xyz.com/publish/location.aspx' page  with pid query string value '${locationmap:ABC}’.

This  suggest that rewriting has taken place but mapping has failed at some point to pick up the corresponding value for ABC from mapping file.

I think the IIRF url rewriting  version used is 1.1 on IIS6.



Rajender Sharma