Forum Moderators: phranque
RewriteRule ^article1 http://www.example.com/new_article_1.html [R=301,L,QSA]
RewriteRule ^article2 http://www.example.com/new_article_2.html [R=301,L,QSA]
...and so on...
# Rewrite for everything else
RewriteRule ^(.*)$ http://www.example.com [R=301,L,QSA]
Does this look about right? I figure if it gets through all the individual rewrites, the last one will catch everything else.
edit: I intentionally left off the $ of the individual article rewrites so it catches article1-page1, article-page2, etc.
The infinite loop - The original site is subdomain.example1.com and is going to redirect to www.example2.com. The rewrite for that is on the subdomain.example1 site. I don't think that'll cause a loop, although I certainly could be wrong.
RewriteRule ^article1 http://www.example.com/new_article_1.ht[b]ml?[/b] [R=301,L]
RewriteRule ^article2 http://www.example.com/new_article_2.ht[b]ml?[/b] [R=301,L]
...and so on...
# Rewrite for everything else
RewriteRule ^(.*)$ http://www.example.c[b]om?[/b] [R=301,L]
Jim