|
No, sorry. I've always been pretty bad with regular expressions. But maybe what I've come up with for my own site ( with a few tutorials, and trial-and-error ) can help a little bit?
I started out calling my site LandscapePhoto.us, but then I started doing portrait photography, so the name was a bit limited, and I decided to just go with my domain name, ForrestCroce.com; the problem was to not duplicate all the content in Google's eyes, and to carry the link-juice from one domain to the other. I also decided I don't want any www subdomain. This is what I came up with:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^forrestcroce\.com [NC]
RewriteRule ^(.*) http://forrestcroce.com/$1 [R=301,L]
The ! means doesn't equal or start with, so you might be able to use that.
|