1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Strange case after moving to a new domain

Discussion in 'Black Hat SEO' started by mahamad3, May 1, 2015.

  1. mahamad3

    mahamad3 Regular Member

    Joined:
    Apr 26, 2012
    Messages:
    314
    Likes Received:
    28
    Gender:
    Male
    Location:
    Dubai
    Hi

    I had a domain example.com, I moved it to sub.example.com and I made the redirect.

    The strange point is, if I search with http://example.com it's not indexed (that's normal) but If I search with my brand name, the first result is http://example.com and of course if you click at it, you will be redirected to sub.example.com

    Note : The site had been moved and redirected since 1 year.

    any one has explanation?
     
  2. redmoon

    redmoon Regular Member

    Joined:
    Aug 19, 2009
    Messages:
    246
    Likes Received:
    73
    You did 301 and not 302 redirects right?
     
    • Thanks Thanks x 1
  3. mahamad3

    mahamad3 Regular Member

    Joined:
    Apr 26, 2012
    Messages:
    314
    Likes Received:
    28
    Gender:
    Male
    Location:
    Dubai
    The redirect was as following :

    header('Location: http://sub.example.com');
    exit;

    I updated it yesterday to :

    header("HTTP/1.1 301 Moved Permanently");
    header('Location: http://sub.example.com');
    exit;

    Do you think it was the cause as it wasn't 301 ?
     
  4. SEOking222

    SEOking222 Jr. VIP Jr. VIP

    Joined:
    Sep 29, 2012
    Messages:
    1,416
    Likes Received:
    167
    Occupation:
    LOL ya right
    Location:
    Ghosted
    I think its 301 redirect.
     
    • Thanks Thanks x 1
  5. redmoon

    redmoon Regular Member

    Joined:
    Aug 19, 2009
    Messages:
    246
    Likes Received:
    73
    Yeah I think so. When redirects aren't 301's you can get some odd results in the search engines. Since you added the permanent redirect I would submit a sitemap and you should notice the links showing up like you want them to.
     
    • Thanks Thanks x 1