What I`ve been trying to achieve:
Translate following address
http://domain/path/to/action/?query=string&some=other
to
http://domain/index.php?action=path/to/action&query=string&some=other
with mod_rewrite in .htaccess file. The closest to it what I can get is:
RewriteEngine On
RewriteBase/
RewriteRule^([\w\/]+)$index.php?action=$1 [L]
But that of course will give me http://domain/index.php?action=path/to/action. Anything I`ve tried to add after ([\w\/]+) didn`t fetch me the query string after '?' sign. Obviously I fail at regular expressions :/
Any ideas how it might be done?