Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Add-on Domain Indexed As Subdomain of the Main Domain - How to fix it?

         

seojohny

10:45 pm on May 25, 2014 (gmt 0)

10+ Year Member



Hi I have a big dillema. <My hosting provider> suddenly showed subdomain to google, and google bots indexed them. Now there is a big mess in search index, because everybody can see the I have all those subdomains by typing

site:example.com


So the subdomain urls look like this

subdomain.example.com

for example main domain is example.com anotehr domain on <my hosting account> is example2.com and it lies in the subfolder called example2

now Google somehow indexed example2.com pages twice like for example

1. example2.com/blog
2. example2.example.com/blog

So I have duplicate urls all of a sudden somehow.
So what to do ? How to fix this? What is the solution?

I tried in google webmaster tool to apply for removal of urls, but I cant use this kind of urls example2.example.com/blog, they are not accepted

[edited by: aakk9999 at 11:56 pm (utc) on May 25, 2014]
[edit reason] Exemplified [/edit]

seojohny

4:48 am on May 29, 2014 (gmt 0)

10+ Year Member



yes I know, but talked with bluhost support and they told me it does not work this way, they do not allow it

so they send me only some htaccess code instead, BH aint the best host I gueess, where do you host if I may ask?

JD_Toims

4:50 am on May 29, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I should probably add:

When I say I have done what I outlined for years, I mean even on shared hosting from small-and-cheap, to high-end -- When I say "high-end", think over $50/month for shared hosting and the host is "security crazy" to the point if my IP changes they block me at the firewall so I can't access the databases.

I have not yet run into a cPanel host where I couldn't set an add-on domain's root directory to whatever I wanted on the same level as public_html, and I'm getting close to entering my 11th year online.

JD_Toims

4:54 am on May 29, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I can't answer where I host publicly, afaik, but if you check your sticky mail, I might have answered privately ;)

seojohny

5:00 am on May 29, 2014 (gmt 0)

10+ Year Member



no they do not allow this, i am pissed, they told me that duplicate content is not an issue, then i showed them site:maindomain.com and they stopped talking

leadegroot

5:14 am on May 29, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, seeing you cant stop it happening, you'll have to make sure that the spiders which is the correct address, which goes back to the techniques I listed on page 1 :)
Even if you stop ot happening in future, you still need to fix the current situation, so those techniques will be a wonderful learning opportunity for you :(

phranque

5:50 am on May 29, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



seojohny, see my initial answer to your OP.
you always need a hostname canonicalization redirect.

lucy24

6:38 am on May 29, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The primary/addon structure makes it a little harder* to set up redirects, because you're moving between higher and deeper directory levels. So you have to be a little more careful about everything involving hostnames. If A is inside B, then requests for A pass through B's htaccess but requests for B never see A's.

I think cPanel may be a red herring. That's just how you communicate preferences within a permitted range; it can't override or supersede the host's underlying directory structure. (And that's all I know, because I've got one of those mega-hosts that roll their own control panel.)


* Unless you know ahead of time that you'll be running multiple domains. Then you can treat your "primary" domain as a dummy that isn't used for anything, allowing all others to remain parallel.
This 37 message thread spans 2 pages: 37