Please help me understand why my rules highlighted in red don’t work.
URL
www . markrequenaphotography . ca/wedding-photography/?serv=Professional%20Wedding%20Photography&loc=Kent%20Bridge
.htaccess
RewriteEngine On
RewriteBase /
[COLOR=#FF0000]RewriteCond %{QUERY_STRING} ^serv=(.*?)&loc=([^/]*)$ [NC]
RewriteRule (.*) http://www.markrequenaphotography.ca/%1/%2/? [R=301]
[/COLOR]
RewriteCond %{HTTP_HOST} ^markrequena\\.ca$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\\.markrequena\\.ca$ [NC,OR]
RewriteCond %{HTTP_HOST} ^markrequenaphotography\\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^markrequena\\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\\.markrequena\\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^requena\\.co\\.uk$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\\.requena\\.co\\.uk$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\\.markrequenaphotography\\.com$ [NC]
RewriteRule (.*) http://www.markrequenaphotography.ca [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Output
www . markrequenaphotography . ca/wedding-photography/?serv=Professional%20Wedding%20Photography&loc=Kent%20Bridge