I am wasting hrs here with .htaccess to create individuals nice searching Web addresses possible and arrived at a stalemate. This is exactly what labored for me personally previously:

RewriteRule ^(.*)\?*$ app.php?_target=$1 [L]

Now I must extend this rule to aid Web addresses such as this:


Here is a nice explanation why I'd like carrying this out. My rule appears like this now:

RewriteRule ^(.*)\?(.*)$ app.php?_target=$1&$2 [L]

I have validated this expression, like me no regEx expert also it appears OK. But, obviously, it does not work :/

The same is true anybody understand what I'm doing wrong?

Make use of the QSA (Query String Append) flag:

RewriteRule (.*) app.php?_target=$1 [L,QSA]