homepage Welcome to WebmasterWorld Guest from 54.205.197.66
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Sub-domain Ignored in Favor of Folder
Google ignores the sub-domain
Rhys




msg:773800
 3:31 am on Dec 29, 2005 (gmt 0)

Google is ignoring the sub-domain on a site I recently (8 months ago) upgraded from
http:/mysite.com/subsite/ to
http:/subsite.mysite.com/
Google only lists the old address, and no traffic shows on the stats for the sub-domain. The site shows up fine in the SERP's but only as the old folder address (http:/mysite.com/subsite)

Is there a way to compel Google to find/list the sub-domain? - the internal links all point to the new sub-domain.

 

tedster




msg:773801
 4:54 pm on Dec 29, 2005 (gmt 0)

Do subdirectory urls return a 301, or do they still return the page with a 200?

Rhys




msg:773802
 8:48 pm on Dec 29, 2005 (gmt 0)

return the page with a 200?

If that means the pages render properly, then yes it all works perfectly, the problem lies in the fact that Google appears to ignore the sub-domain, and therefore all serps show the site as a folder, not a sub-domain -

I.E., the site url only ever lists as [mysite.com....] in Google searches.

tedster




msg:773803
 9:05 pm on Dec 29, 2005 (gmt 0)

Rendering properly is not all that is needed. If you type in the subdirectory version of a url, the address in the browser's location bar change to subdomain version, or does it stay with the subdirectory version of the address?

The 301 and 200 I referred to are the HTTP header responses sent by the server. If the subdirectory versions of the url resolve as a 200 instead of permanently redirecting (301) to the subdomain, then there's no reason for Google to change anything.

Rhys




msg:773804
 9:22 pm on Dec 29, 2005 (gmt 0)

If you type in the subdirectory version of a url, the address in the browser's location bar change to subdomain version, or does it stay with the subdirectory version of the address?

Thanks, I understand the above part of your post Tedster, I think.
Whatever I enter in the browser address window always changes to the sub-directory version of the URL

tedster




msg:773805
 10:28 pm on Dec 29, 2005 (gmt 0)

You can use this tool on our "sister site" [searchengineworld.com...]
...to make sure that it's a 301 (permanent) redirect to the subdomain, rather than a 302 (temporary).

If all is well there, then Google is indeed still tangled up and I'm sure what other steps you can take escept to wait. Maybe do another complete check on all your internal links.

Rhys




msg:773806
 11:36 pm on Dec 29, 2005 (gmt 0)

Yep, it is a permanent redirection 301.

Teoma gets it right, but MSN, Yahoo, and Google all get it backwards - very frustrating.

Rhys




msg:773807
 12:22 am on Dec 31, 2005 (gmt 0)

I have been studying this and I find that all my sub-domains on my other URLs all behave normally, I.E., the browser displays the url as a sub-domain; and it is only on this one URL that this problem appears

I am badgering my ISP at the moment to see if he can explain it. All my domains are on the same server

Rhys




msg:773808
 9:06 pm on Dec 31, 2005 (gmt 0)

OK, My ISP has identified this line in my htaccess as the problem:

RewriteCond %{HTTP_HOST}!^www\.MySite\.com [NC]
RewriteRule (.*) [MySite.com...] [R=301,L]

It is in there to redirect the MySite.net URL to the main MySite.com, but it has this bad side effect on sub-domains.

Can someone kindly show me how to rewrite the above rule to ONLY re-direct MySite.net? - Many Thanks, Rhys

:)

Rhys




msg:773809
 1:10 am on Jan 1, 2006 (gmt 0)

Found one to paste in and it works good-oh..

RewriteEngine On
RewriteCond %{HTTP_HOST} ^MyHost.net
RewriteRule ^(.*)$ [MyHost.com...] [r=301,L]

:then repeat it with the www's added.

This redirects the .net url but displays the .com in the browser window, and doesn't interfere with any sub-domains.

tedster




msg:773810
 1:18 am on Jan 1, 2006 (gmt 0)

I think you've got it -- good detective work.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved