Page 1 of 1

mod_rewrite help - match no request_uri

Posted: Tue May 08, 2007 5:36 pm
by Luke
Kind of strange... I used this rule on one server and it works fine, but on another it gives a 500 Internal Server Error

Code: Select all

RewriteEngine On
 RewriteBase /

 #This is to be uncommented when the new store goes live
 RewriteRule ^(|index\.html?)$ /mm5/merchant.mvc [L,QSA]
When I take out the | at the beginning, it works fine, but then it doesn't redirect when there is no request_uri (when somebody simply types in the domain name with no path). How do I match that?