https://loc.mysite.com/Orders/Order?id=000001&userid=22222222222
https://loc.mysite.com/Orders/Order_id_000001_userid_22222222222
RewriteCond %{QUERY_STRING} (?:^|&)id\=000001(?:$|&)
RewriteCond %{QUERY_STRING} (?:^|&)userid\=22222222222(?:$|&)
RewriteRule ^Orders/Order$ /Orders/Order_id_000001_userid_22222222222? [L,R=301]
RewriteCond %{QUERY_STRING} (?:^|&)id\=(.+)(?:$|&)
RewriteCond %{QUERY_STRING} (?:^|&)userid\=(.+)(?:$|&)
RewriteRule ^Orders/Order$ /Orders/Order_id_%1_userid_%2? [L,R=301]
%1
это группа из RewriteCond %2
соответственно (?:
- этот знак анилирует этут группу дабы она не мешала https://loc.mysite.com/Orders/Order_id_000001_userid_11111111111
https://loc.mysite.com/Orders/Order_id_000002_userid_22222222222
https://loc.mysite.com/Orders/Order?id=000001&userid=11111111111
https://loc.mysite.com/Orders/Order_id_000001_userid_11111111111
https://loc.mysite.com/Orders/Order?id=000002&userid=22222222222
https://loc.mysite.com/Orders/Order_id_000002_userid_22222222222
https://loc.mysite.com/Orders/Order_id_000001_userid_11111111111
RewriteCond %{THE_REQUEST} .*id\=([0-9]+)\&userid\=([0-9]+).*
RewriteRule ^Orders/Order/$ /Orders/Order_id_%1_userid_%2? [L,R=301]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{THE_REQUEST} .*id\=([0-9]+)\&userid\=([0-9]+).*
RewriteRule ^Orders/Order/$ /Orders/Order_id_%1_userid_%2? [L,R=301]
RewriteEngine On
RewriteCond %{THE_REQUEST} .*id\=([0-9]+)\&userid\=([0-9]+).*
RewriteRule ^Orders/Order/$ /Orders/Order_id_%1_userid_%2? [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]