I have a multi site install using sub directories and Im using domain mapping.

The second site is like such domain.com/site2 and thats mapped to mywebsite.com

I can visit domain.com/site2 or mywebsite.com and both sites are being indexed by google - how can I make domain.com/site2 redirect to mywebsite.com so domain.com/site2 is not visible to users or search engines, only mywebsite.com is visible?


1 Answer 1


Something like this should help you.

Redirect 301 /subfolder http://www.your-url.com/
  • Everyone understand it that what is it. But may be good for newbies if you add that what do you mean by something.
    – Sumit
    May 16, 2016 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.