Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain\.com
RewriteRule ^(.*)$ [mydomain.com...] [R=permanent,L]
Options +FollowSymlinks
# Redirects URL
Redirect permanent /en-GB/allservices/index.php?id=myID1 [mydomain.com...]
The order the rules are processed is indeterminate, as rules are processed in 'per module' order, not in the order they appear on the page.
That is, all rules from Mod_Alias might be processed before all those from Mod_Rewrite - or maybe it is the other way round.
Stick with RewriteRule for all of your rules to avoid that problem, and order the rules from most specific to least specific.
That said, Merry Christmas:
Options +FollowSymlinks
RewriteEngine On
#
RewriteCond %{QUERY_STRING} ^id=myID1$
RewriteRUle ^en-GB/allservices/index\.php$ http://www.example.com/mypage.php? [R=301,L]
#
RewriteCond %{HTTP_HOST} ^mydomain\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
you put
RewriteRUle ^en-GB/allservices/index\.php$ http://www.example.com/mypage.php? [R=301,L]