Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 03:43:04 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: My main domain is linked to my add ons on Google - Please Help  (Read 1354 times)
jgye21574
Trekkie
**
Offline Offline

Posts: 10


« on: May 15, 2008, 12:07:23 PM »

Hi to All,

I have a serious trouble with my sites. I have checked my websites today in Google and discovered that my add on domains pages have been indexed as part of the main website. My main websites is: dietprogramreference.com and I have 2 add ons:

1) coloncleansereference.com
2) hemorrhoidstreatementreference.com

Many pages of them have been indexed as pages of the main domain. If I made a seearch in google, I verify this. You can find the information by clicking this link: http://www.google.com/search?hl=en&q=site%3Adietprogramreference.com

Each of the add on sites have been created with their own index.html pages and indexed as independent sites. But for unknow reason, Google continue to index the pages either as part of the main domain and the add ons.

As you know this will create many problems from a seo point of view including duplicate content penalties.

I want the websites to be separated and don't know what to do.

Please help.

Yvon

Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 7921



WWW
« Reply #1 on: May 15, 2008, 12:38:59 PM »

Well chances are the spiders found a place where they crawled across that link somewhere in your design or code.  First thing I'd check into is where or how they were able to find that.  Search engines can't find anything that is not link accessible in one way shape or form.

You might be able to block that folder from being crawled under the main domain, via a robots.txt block tell them not to crawl there - not sure how that would effect (or if it would effect) the addon domain. 
Logged

MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3381



« Reply #2 on: May 15, 2008, 01:14:42 PM »

There's an error in the way that LP insists on configuring its servers and DNS, so that add-on domains usually show up (and get indexed) as either subdomains of the primary, or directories under the primary. So http://www.coloncleanserreference.com shows up as http://www.dietprogramreference.com/coloncleanserreference/. You should see this happening in your browser's address bar. One way to fix it is to add the following to public_html/coloncleanserreference/.htaccess:

RewriteEngine On
RewriteRule  ^(.*)$  http://www.coloncleanserreference.com/$1  [R=301]


This should keep it from being changed to primary/addon/. It may also show up as a subdomain of the primary domain, and you'd have to add a line or two for that. Repeat for the other add-on domain.

The search engines will keep your old stuff around for a while, at least until the next site crawl. I've heard there's a way to remove the bogus site names and have the site crawled for a fresh update, so you can look around for that. In the meantime, there may be a penalty for duplicate content between the "two sites".

Colon cleansing? Yecch! The last time I had to do that was when my typewriter ":" key got gunked up with too much ink from the ribbon! Rofl
Logged

jgye21574
Trekkie
**
Offline Offline

Posts: 10


« Reply #3 on: May 16, 2008, 09:19:28 AM »

Hi MrPhil,

I made exactly what you asked me to do. I copy and paste:
RewriteEngine On
RewriteRule  ^(.*)$  http://www.coloncleanserreference.com/$1  [R=301] into the .htaccess file.

i mmeditely, the site became unavailable from the net and could'nt be access. I removed the code and it become available again. I have to notice that when you create add ons, Lunarpage doesn't automatically create the htaccess for you a other web host do. You must create it by yoursef.

I wonder if this is not due to the fact that Lunarpages didn't used to accept add on free and you had to pay 30 USd a year for them. Maybe they have configured their server so that only them can created the add on for us.

Do you think it would be a good idea to move my sites to other servers?

Thanks in advance.

Yvon

Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3381



« Reply #4 on: May 16, 2008, 02:45:54 PM »

Did you do that in the right place? public_html/coloncleanserreference/.htaccess? Did your browser give any error messages? What did you see when you tried to load the page?

There are two other possibilities:
1) Whenever you make a change to .htaccess, it's a good idea to either clear your browser cache or force a comple reload of the page (Ctrl-F5).
2) There's a chance that the REQUEST_URI being presented to the add-on's .htaccess includes the top-level subdirectory, i.e., it's /coloncleanserreference/blah blah blah rather than just /blah blah blah. In that case, the file would probably be

RewriteEngine On
RewriteRule  ^coloncleanserreference/?(.*)$  http://www.coloncleanserreference.com/$1 [R=301]


Maybe. If that doesn't work, open a support ticket an support should be able to walk you through it.
Logged

speculumcm
Intergalactic Cowboy
*****
Offline Offline

Posts: 51


Dark Matter: Particle collider


« Reply #5 on: May 18, 2008, 12:42:03 AM »

Quote
There's an error in the way that LP insists on configuring its servers and DNS
Hmmm... IMHO I don't think there's an error in LP, it's pretty  easy to fix this problem, just go to cPanel,  select redirects >>
Add Redirect:
http://dietprogramreference.com/ coloncleanserreference.com/      >>         http://www.coloncleanserreference.com/

If you want ti have www always which it recommendable and the index page like "/" write this to your .htaccess

<Ifmodule mod_rewrite.c>
Options +Indexes +FollowSymlinks
RewriteEngine on
RewriteBase /

### re-direct index.php to root / ###
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

### re-direct non-www to www
rewritecond %{http_host} ^coloncleanserreference.com [nc]
rewriterule ^(.*)$ http://www.coloncleanserreference.com/$1 [r=301,nc]
####
</Ifmodule>

Well if it's html just change instead of php extension.

Hope this help!
Logged
jgye21574
Trekkie
**
Offline Offline

Posts: 10


« Reply #6 on: May 18, 2008, 09:01:24 PM »

Hi Speculum,

Believe or not, when I tried to make the redirect with the redirect section in Cpanel, the site became unavailable. I remove the redirect and all fine. I have many other counts with other host. i have 3 accounts with Lunarpages. I am going to close this one and continue with the 2 others. i am just waiting the login details to change my DNS and put the 3 sites on other servers and close this account. They will be on different servers.Problems solved.


Thanks a lot for trying to help.

Yvon
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3381



« Reply #7 on: May 19, 2008, 04:36:00 PM »

Quote
There's an error in the way that LP insists on configuring its servers and DNS
Hmmm... IMHO I don't think there's an error in LP, it's pretty  easy to fix this problem, just go to cPanel,  select redirects >>
Add Redirect:
http://dietprogramreference.com/ coloncleanserreference.com/      >>         http://www.coloncleanserreference.com/

cPanel cannot handle redirects involving subdomains and add-on domains -- it screws them up royally. You have to edit .htaccess manually.

I'm still pondering why jgye21574 is having trouble with the redirection. I would suggest that they open a support ticket to have support fix the problem.
Logged

speculumcm
Intergalactic Cowboy
*****
Offline Offline

Posts: 51


Dark Matter: Particle collider


« Reply #8 on: May 19, 2008, 04:50:43 PM »

Quote
cPanel cannot handle redirects involving subdomains and add-on domains -- it screws them up royally. You have to edit .htaccess manually.
Oh! I though all were about add-on domains with an aim domain. I always follow that procedure to redirect my add-on domains then I just type my .htaccess manually in the way I showed up and all it's fine. Do you think I will have problems as well or it's just with subdomains... but after all add-on domains are subdomains, don't they?  Anyway I think you're righ in the sense to open a support ticket and thaks for replying.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM