SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist John D's Avatar
    Join Date
    Jun 2003
    Location
    Derry, Ireland
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google indexing my site as a full domain plus subdomain (Hosted as add-on domain)

    Hey,

    I have one main domain, lets say domain.com and then I have my other sites in subdirectories sub.domain.com and they with otherdomain.com

    Google has otherdomain.com indexed fully, but it also has a duplicate listing/indexing with the site also showing up as otherdomain.domain.com

    Can I stop this as I'm sure it isn't helping having it indexed twice..

    Thanks
    CanaryHotspot.com - Canary Island forum and information
    InternationalChatForum.com - International Travel Chat Forum and information

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    JD,

    Indeed! You will be penalized (and removed from their database) when the duplicate is detected.

    I'm sure you'd rather have your otherdomain.com visited directly rather than via a subdirectory of domain.com so simply use a 301 redirect to make that happen, e.g.:

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !www\.otherdomain\.com [NC]
    RewriteRule .? http://www.otherdomain.com%{REQUEST_URI} [R=301,L]
    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •