|
|||
|
Cpanel Parked Domains Problem / Redirects Cpanel Error
Hello,
We have domain.com as the primary domain for the site in question. We migrated from DirectAdmin to Cpanel a few months ago. DirectAdmin 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. If someone visits www.domain.co.uk it remains as domain.co.uk/page.html rather than redirect to www.domain.com/page.html 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: Code:
RewriteCond %{HTTP_HOST} ^domain.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.co.uk$
RewriteRule ^(.*)$ "http\:\/\/www\.domain\.com$1" [R=301,L]
Code:
redirectMatch 301 ^(.*)$ http://www.domain.co.uk redirectMatch permanent ^(.*)$ http://www.domain.com Code:
Redirect 301 http://www.domain.co.uk http://www.domain.com After requesting some help on the WHT forum a helpful member there suggested the following: Quote:
There was a error adding redirect. Quote:
I'd appreciate if someone could help me with this issue. Thanks, Tom |
|
||||
|
In your cPanel interface, click on "Parked Domains."
Now click on "Manage Redirection." Here, type domain.com as the URL you want domain.co.uk to redirect to. Save the settings. If this does not work, please let me know. I tested this on a server running the latest 11.24 RELEASE.
__________________
- cPanel David G., Lead Forum Administrator & cPanel Technical Product Specialist Do you want 50% off your cPanel Conference Admission? View Coupon Code |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I can't remove permanent redirects in cPanel Redirects | zpnd | cPanel Newbies | 8 | 06-03-2009 11:55 AM |
| Pointing parked domains in cPanel to a different directory | zaggs | cPanel and WHM Discussions | 1 | 09-15-2008 02:12 PM |
| User had addon domains, after cpanel upgrade, they are now parked domains | Oriso | cPanel and WHM Discussions | 0 | 01-09-2008 11:41 AM |
| Header Redirects on "Parked"Domains | tj111 | cPanel and WHM Discussions | 1 | 09-12-2007 05:16 PM |
| Parked domains go to wrong site, do not show up in cpanel | F Brown | cPanel and WHM Discussions | 2 | 08-31-2003 11:51 PM |