301 for Root Only

Discussion in 'Apache' started by toddo14, Jun 22, 2007.

  1. #1
    We own two domains, call them domain1.com and domain2.com, both of which are for the same content and both have inbound links to them.

    So now I'm trying to redirect one to the other to avoid dupe content penalties. We now use domain1.com and want to 301 domain2.com to domain1.com

    Simple enough, but we have a client section on domain2 that needs to stay on the domain. So what I want to do is redirect the domain2 root to domain1 but only redirect the root.

    So domain2.com redirects to domain1.com
    but
    domain2.com/* doesn't do anything.

    Can someone help?
     
    toddo14, Jun 22, 2007 IP