Forum Moderators: phranque
# Move good news subdomain urls to respective www locations
RewriteEngine On
RewriteRule news.clickfire.com/blah/123/$ http://www.clickfire.com/blah/ [R=301,L]
# Everything else on news subdomain go to root/viewpoints/news/
RewriteCond %{HTTP_HOST} ^news.clickfire.com$
RewriteRule ^(.*)$ http://www.clickfire.com/viewpoints/news/$1 [R=301,L]
http://news.clickfire.com/something/news.clickfire.com/blah/123/ to a new URL. That is what you have coded it to do. RewriteRule sees only the path part of the request, not the domain name. RewriteCond of the second rule you should escape the literal periods.