Rewritemap rules not working on Windows server 2012

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 11 Jun 2014, 13:35

Rewritemap rules not working on Windows server 2012

11 Jun 2014, 17:51

We are upgrading our sites to Windows Server 2012 R2 64 Bit. All rewrite rules are working except the ones that use mapped files. These rules don't work at all. Below is a sample.

RewriteMap healthadminmapfile txt:healthadminurlredirect.txt
RewriteMap lower int:tolower
RewriteCond ${healthadminmapfile:${lower:$1}|NOT_FOUND} !NOT_FOUND
RewriteCond %{HTTP:Host} (?:www.)?healthadmin\.website\.com
RewriteRule ^/(.+)/$ http\://www.website.com/${healthadminmapfile:${lower:$1}} [NC,R=301]

Below is the content of the mapped file

contact contact
company company
help help
support techsupport
email email

I did a standard install of ISAPI_Rewrite 3.0 on this box. Is there anything else I need to do?

Thanks
Royal

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Rewritemap rules not working on Windows server 2012

11 Jun 2014, 23:25

Hi,

What do the logs say? usually it can be permissions issue.

Regards

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 7 guests