how to redirect parked domain to main domain

Using a single web hosting account to host multiple sites

how to redirect parked domain to main domain

Postby huyhoa » Wed Apr 14, 2010 7:10 pm

I have 2 domains, abc.com and abc.net
I parked abc.net on hosting that hosted abc.com.
Now abc.com and abc.net is the same content.
But i want when user visit abc.net, it will automatic redirect to abc.com (Do not tell me use redirect html because of I use PARKED DOMAIN)
Richard or anyone could use some free time to help me?
Thank you so much!
huyhoa
 
Posts: 35
Joined: Tue Nov 28, 2006 2:25 am

Re: how to redirect parked domain to main domain

Postby skygod12000 » Sat Aug 21, 2010 10:40 pm

Hi,

This is the format I have used which seems to work as you have requested :

RewriteCond %{HTTP_HOST} ^abc\.net$ [NC]
RewriteRule ^(.*)$ http://www.abc.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www\.abc\.net$ [NC]
RewriteRule ^(.*)$ http://www.abc.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^abc\.com$ [NC]
RewriteRule ^(.*)$ http://www.abc.com/$1 [R=301,L]

George
skygod12000
 
Posts: 8
Joined: Wed Aug 05, 2009 3:13 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 2 guests

cron