Rewritemap rules not working on Windows server 2012
2 posts
• Page 1 of 1
Rewritemap rules not working on Windows server 2012
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
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
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Rewritemap rules not working on Windows server 2012
Hi,
What do the logs say? usually it can be permissions issue.
Regards
What do the logs say? usually it can be permissions issue.
Regards
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests