Forum Moderators: phranque
rewritecond %{http_host} ^mydomain.com [nc]
rewriterule ^(.*)$ [mydomain.com...] [r=301,nc]
rewritecond %{http_host} ^mydomain.biz [nc]
rewriterule ^(.*)$ [mydomain.com...] [r=301,nc]
rewritecond %{http_host} ^mydomain.co.uk [nc]
rewriterule ^(.*)$ [mydomain.com...] [r=301,nc]
rewritecond %{http_host} ^mydomain.info [nc]
rewriterule ^(.*)$ [mydomain.com...] [r=301,nc]
rewritecond %{http_host} ^mydomain.net [nc]
rewriterule ^(.*)$ [mydomain.com...] [r=301,nc]
rewritecond %{http_host} ^mydomain.org [nc]
rewriterule ^(.*)$ [mydomain.com...] [r=301,nc]
rewritecond %{http_host} ^mydomain.us [nc]
rewriterule ^(.*)$ [mydomain.com...] [r=301,nc]
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com [L,R]
rewritecond %{http_host} ^example.biz [nc]
rewriterule ^(.*)$ http://www.example.com [L,R]
rewritecond %{http_host} ^example.co.uk [nc]
rewriterule ^(.*)$ http://www.example.com [L,R]
rewritecond %{http_host} ^example.info [nc]
rewriterule ^(.*)$ http://www.example.com [L,R]
rewritecond %{http_host} ^example.net [nc]
rewriterule ^(.*)$ http://www.example.com [L,R]
rewritecond %{http_host} ^example.org [nc]
rewriterule ^(.*)$ http://www.example.com [L,R]
rewritecond %{http_host} ^example.us [nc]
rewriterule ^(.*)$ http://www.example.com [L,R]
RewriteCond %{HTTP_HOST} ^(www\.)?example\.us
RewriteRule (.*) http://www.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L] I get it, so you are basically suggesting to use the last 2 lines instead of using bunch of individual URL rewrite/redirect requests.