View Full Version : multiple rewriteCond (.*) not working?

03-07-2011, 10:21 PM
RewriteCond %{QUERY_STRING} c=(.*)
RewriteCond %{QUERY_STRING} sk=(.*)
RewriteRule ^([_A-Za-z0-9-]+)(.*)(.*) /index.php?page=find&term=$1&ch=%1&s=%2

That is what im trying to do, however, I can not get the ?dp to work correctly.

" domain.com/test?c=74?sk=45 "

or even to allow multiple param would be great
I know its sorta odd way of doing so.
(it trys to given an easier way of looking at the page instead of the .php style for non-seo relations.)


03-07-2011, 11:06 PM
I reconfigured for this

RewriteCond %{QUERY_STRING} c=(.*)
RewriteRule ^([_A-Za-z0-9-]+)(.*)([_A-Za-z0-9-]+) /index.php?page=find&term=$1&ch=%1&sk=$2 [NC]

Works okay, anyone to comment or say other solutions, i'm all hears. thanks