Welcome to WebmasterWorld Guest from 54.145.208.64

Message Too Old, No Replies

Sub-domain Ignored in Favor of Folder

Google ignores the sub-domain

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

10+ Year Member



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.

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Do subdirectory urls return a 301, or do they still return the page with a 200?
8:48 pm on Dec 29, 2005 (gmt 0)

10+ Year Member



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.

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

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

10+ Year Member



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

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

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

10+ Year Member



Yep, it is a permanent redirection 301.

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

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

10+ Year Member



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

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

10+ Year Member



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

:)

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

10+ Year Member



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.

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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