I want to redirect subdomain.example.com to newsubdomain.example.com. Both are working under the same redirect rules, but one of these rules is does not do what I need it to do. I need a 301 redirect under a new rule (using another URL structure).
Example: http://subdomain.example.com/c/138 to http://newsubdomain.example.com/138/
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain.example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
RewriteCond %{QUERY_STRING} ^c/([^&]+)
RewriteRule ^/?category\.php$ http://www.alarab.com/%1/ [L,R=301]
Any suggestions?
Thanks