Can't get mod_rewrite to work... I must be misunderstanding

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

Can't get mod_rewrite to work... I must be misunderstanding

Post by Luke »

OK, I've got this rule...

Code: Select all

RewriteCond %{REQUEST_URI} ^/search/?(.*) [NC]
RewriteRule (.*) /merchant2/merchant.mvc?Store_Code=BS&Screen=SRCH&%1 [L]
But when I go to /search/?search=test it does not work... what is wrong with my mod rule? I thought that all data after the question mark in the url would be written into where the %1 is, but that's not working... ?
Post Reply