![]() | | ||||||||
| | #1 |
| ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ War Room Member Join Date: Dec 2008 Location: Texas
Posts: 239
Thanks: 54
Thanked 21 Times in 19 Posts
|
Have a newly registered site on shared hosting at hostmonster. Due to the allegedly helpful feature provided by the cpanel of setting all addon domains resolving also as subdomains of the primary, search engines (on their own) discovered: mynewdomain.primary.com before finding mynewdomain.com anybody have an easy way to redirect mynewdomain.primary.com to mynewdomain.com? This is for a client site, and I really don't want the client's stuff mixed in with mine and vice-versa |
|
Robin | |
| | |
| | #2 |
| Warrior Member Join Date: Jul 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
|
Try the following your htaccess file Code: # This allows you to redirect your entire website to any other domain Redirect 301 / full url Code: <?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: full-url" );
?> |
| RankPay - Don't Pay Until You Rank - The best in SEO Services. RankPay features expert SEO analysis. They will REFUSE your generic keywords and will work with you to pick keywords FREE OF CHARGE. | |
| | |
| | #3 |
| ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ War Room Member Join Date: Dec 2008 Location: Texas
Posts: 239
Thanks: 54
Thanked 21 Times in 19 Posts
|
I think I solved it: RewriteEngine On RewriteCond ^primary\.mynewdomain\.com/$1 [NC] RewriteRule ^(.*)$ http://www.mynewdomain.com/$1 [R=301,L] seems to work. |
|
Robin | |
| | |
![]() |
|
| Tags |
| htaccess |
| Thread Tools | |
| |
![]() |