need help to translate from isapi v.3 to v.2

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 1
Joined: 23 May 2013, 06:05

need help to translate from isapi v.3 to v.2

23 May 2013, 06:07

My new hosting dont support v.3 so i need to translate the htaccess to httpd.ini

this is my htaccess
Code: Select all
# Helicon ISAPI_Rewrite configuration file
# Version

RewriteEngine on
RewriteBase /

RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]

RewriteMap map2 txt:mapfile2.txt [NC]
RewriteMap map-reverse2 txt:mapfile-reverse2.txt [NC]

RewriteCond %{QUERY_STRING} (.*)
RewriteCond /$1\?%1 (.*)
RewriteCond ${map2:%2|NOT_FOUND} (.*)
RewriteCond %3 !NOT_FOUND
RewriteRule (.*) /%3? [R=301,NC,L,NS]

RewriteCond ${map-reverse2:$1|NOT_FOUND} (.*)
RewriteCond %1 !NOT_FOUND
RewriteRule (.*) %1 [NC,L,NS]

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: need help to translate from isapi v.3 to v.2

24 May 2013, 05:05


The main problem is that v2 does not support map files, so there's no way to convert it except writing separate rules for each line in mapfile (which may be quite a lot).
So, please tell how many entries you have in your mapfiles and I'll tell you if having them all in separate rules won't hinder the performance.

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 2 guests