Moved servers, Rules stopped working

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 07 May 2013, 04:10

Moved servers, Rules stopped working

07 May 2013, 04:16

I have such a simple file, but for some reason it isnt working.

When you go to http://shop.vincemay.com/
it is supposed to redirect to: http://shop.vincemay.com/cgi-bin/commerce.exe?display=home

Am I missing something?


Code: Select all
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.82

RewriteEngine on

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

RewriteRule home\.html$ /cgi-bin/commerce.exe?display=home
RewriteRule products\.html$ /cgi-bin/commerce.exe?listcategories
RewriteRule parent_category/(.*)/(.*)/ /cgi-bin/commerce.exe?listcategories=action&parent=$1
RewriteRule category/(.*)/(.*)/ /cgi-bin/commerce.exe?search=action&category=$1
RewriteRule product/(.*)/(.*)/ /cgi-bin/commerce.exe?preadd=action&key=$1
RewriteRule index\.htm? /cgi-bin/commerce.exe?display=home
RewriteRule contact_us\.htm? /cgi-bin/commerce.exe?display=contact
RewriteRule about_us\.htm? /cgi-bin/commerce.exe?display=about
RewriteRule product_search\.htm? /cgi-bin/commerce.exe?display=search
RewriteRule new_products\.htm? /cgi-bin/commerce.exe?search=action&sortkey=order&sortorder=descending
RewriteRule specials\.htm? /cgi-bin/commerce.exe?search=action&keywords=specials
RewriteRule register\.htm? /cgi-bin/commerce.exe?register=action
RewriteRule login\.htm? /cgi-bin/commerce.exe?login
RewriteRule list_categories\.htm? /cgi-bin/commerce.exe?listcategories
RewriteRule display_category_(.*)_(.*)\.htm? /cgi-bin/commerce.exe?search=action&category=$1
RewriteRule display_product_(.*)_(.*)\.htm? /cgi-bin/commerce.exe?preadd=action&key=$1
RewriteRule view_cart\.htm? /cgi-bin/commerce.exe?display
RewriteRule show_(.*)\.htm? /cgi-bin/commerce.exe?display=action&template=templates/$1.html&emptyoverride=yes
RewriteRule basket\.htm? /cgi-bin/commerce.exe?display

User avatar
Posts: 28
Joined: 02 Mar 2012, 12:50

Re: Moved servers, Rules stopped working

07 May 2013, 06:03

Please try add
RewriteRule ^/?$ /cgi-bin/commerce.exe?display=home [NC,L]

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 22 guests