1 Answers1

2

Some more information about your setup would be good, but essentially:

RewriteRule ^/$ http://my.name.com/ [R=301,L]

That's for in your virtual host configs for the domains that are redirecting; if it's in an htaccess or <Directory> block then you'll need to remove path information:

RewriteRule ^$ http://my.name.com/ [R=301,L]

..and if it's in a location like an htaccess that applies to all of the domain names, then you'll need to have it not redirect for the target domain.

RewriteCond %{HTTP_HOST} !^my\.name\.com$ [NC]
RewriteRule ^$ http://my.name.com/ [R=301,L]
Shane Madden
  • 116,404
  • 13
  • 187
  • 256