Question : Cpanel - 301 redirect parked domains on one account

Hi,
I have an account managed with WHM / Cpanel.

The main domain is domain1.com

I have 2 parked domains.
  domain2.com
  domain3.com

How do I get the parked domains to 301 redirect to the first domain? They are all on the same cpanel account. I dont want to create more accounts.

I want to 301 redirect the parked domains so google doesnt index them all.

Regards
Mitch

Answer : Cpanel - 301 redirect parked domains on one account

What version of cpanel are you on?

You should be able to redirect from both the Manage Redirects page and the Parked Domains page.

If your version doesn't support it, you can do the redirects in .htaccess in public_html of the primary domain:



1:
2:
3:
4:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain2.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain2.com$
RewriteRule ^(.*)$ "http\:\/\/www\.domain1\.com\/$1" [R=301,L]
Random Solutions  
 
programming4us programming4us