[ic] Rewrite rules kill forms

Ton Verhagen tverhagen at alamerce.nl
Wed Jul 18 04:47:50 EDT 2007

Dear All,

I am playing a little with Rewrite rules in order to shorten the url's
generated by IC.

I am using the following (Apache) Rewrite rules:

     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} !^/*cgi-bin
     RewriteCond %{REQUEST_FILENAME} !^/*standard
     RewriteCond %{REQUEST_FILENAME} !^/*images
     RewriteRule ^/*(.*)$ /cgi-bin/standard/$1 [R=301]

The default Search box small component code (see below) generates
the following Error message after implementing Rewrite rules:
"Search strings must be at least 1 characters. You had no search 
string specified."

  <form action="http://www.mydomain.com/search.html" method=post>
     <INPUT TYPE=hidden NAME=mv_coordinate VALUE=1>
     <INPUT TYPE=hidden NAME=mv_searchtype VALUE=db>
     <INPUT TYPE=hidden NAME=mv_matchlimit VALUE=10>
     <INPUT TYPE=hidden NAME=mv_sort_field VALUE=category>
     <INPUT TYPE=hidden NAME=mv_search_field VALUE=":*">
     <input type=hidden name=mv_min_string value=2>
     <input type=hidden name=mv_substring_match value=1>
     <INPUT TYPE=hidden NAME=mv_column_op VALUE="aq">
  <INPUT MAXLENGTH=30 NAME=mv_searchspec type=text size=15>
  <input type=submit>

Actually it seems that all other forms in the catalog stopped working
as well...  They worked ok before implementing the above Rewrite
rules though.

I must be missing something obvious. Any thoughts?

Best regards,


Alamerce Nederland --- Cornerstone of eBusiness
Phone +31-40-2374381    info at alamerce.nl    http://www.alamerce.nl

eCommerce Solutions -- Consulting -- Website & Interchange Hosting 

More information about the interchange-users mailing list