mod_rewrite help - match no request_uri

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

mod_rewrite help - match no request_uri

Post 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?
Post Reply