Sub domains showing folder on primary domain in search results

Discussion in 'Google' started by sandman1976, Mar 21, 2011.

  1. #1
    Hi all,

    Ok i have a primary domain.

    I have folders on the domain with different websites in them, i have other domains pointing to these folders.
    When searching in google it shows the www.primarydomain.com/FOLDER.

    Rather than www.subdomain.com

    How can i rectify this?
    Thanks in advance.
    Adrian.
     
    sandman1976, Mar 21, 2011 IP
  2. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #2
    you have to make sure that nobody including bots can browse subdomain pages www.primarydomain.com/FOLDER.
    to do that you can redirect from that folder.
    in linux servers you could easily accomplish that using .htaccess rule.
     
    webcosmo, Mar 21, 2011 IP
  3. WishBone

    WishBone Peon

    Messages:
    2,566
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think you mistakenly treat that case as subdomain, it must be multiple domains on a server, and saying that folder was under the primary domain, it might be possible for Google bots to index it too. There are other issues that even more worse on this kind of case around where a server with multiple domains and database, a content belongs to site1 was indexed in site2 which should not exist.
     
    WishBone, Mar 22, 2011 IP
  4. sandman1976

    sandman1976 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Right ok i sort of understand you,
    So if i had mainsite.com and a folder inside called "anothersite"
    And a sub domain called subdomain.com with web forwarding to the folder "anothersite"

    How would i set the htaccess to stop the other folders on mainsite.com from showing?

    I have 6 domain names all using web forwarding to point to different folders on the main hosting.
     
    sandman1976, Mar 22, 2011 IP
  5. ACME Squares

    ACME Squares Peon

    Messages:
    98
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Actually that's a bit of a mess to sort out. You'll have to use a Rewrite condition based on %{HTTP_REFERER}.
     
    ACME Squares, Mar 22, 2011 IP
  6. sandman1976

    sandman1976 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hmm, might be out of my depth here lol, im not that advanced with these things :/
     
    sandman1976, Mar 26, 2011 IP