We recently migrated to WHM/Cpanel from Directadmin.
We have domain.com as the primary domain for the site the site in question.
With DirectAdmin it allowed "Domain Pointers" (aka Redirects) to be pointed at the domain.com. We own domain.org/.net/.co.uk which all were simply pointed at domain.com so when someone visited www.domain.co.uk it redirected to www.domain.com
When we started up with Cpanel we used the "Park Domain" option which unfortunately has simply mirrored the site. e.g.
As a result, Google et al have picked up both domains/sites and we are getting penalised for duplicate content.
I am assuming the best way to tackle this is to generate rules within htaccess to solve it.
I have tried several combinations of htaccess rules to permenantly redirect any visitors who come to the site from www.domain.co.uk so it simply redirects them to www.domain.com but I haven't been able to get any to work. Some I've tried:
301 redirect is the most efficient and Search Engine Friendly method for webpage redirection and this can be set up via cPanel in this way:
1. Log in to you cPanel
2. Under "Domains" go to "Redirects"
3. Set Type as "Permanent (301)"
4. Select your domain from the drop down menu
5. Leave the text box after "/" blank
6. Set "redirects to" to your new domain e.g. http://newdomain.com/ (remember to put http:// and a trailing "/")
7. Set "www redirection" to "Redirect with or without www."
8. Check "Wild Card Redirect"
9. Click on "Add"
If you can't see your domain in the drop down menu then first go to Domains -> Addon Domains/Parked Domains (any of the two will work) and add your domain there.
Hope this helps!
Last edited by saadsalman; 09-30-2009 at 12:43 AM.