Welcome to WebmasterWorld Guest from 50.16.68.229

Google displays wrong domain

Moderately confused...

   
8:41 am on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Hi there,

I just did a google search on a major keyword and found my site with a good ranking as "www.registrarcode/directory/subdirectory.index.html" rather than the expected "www.example.net"

What? Why? That never happened before and the site is online for months? Advice is much appreciated...

10:05 am on May 26, 2006 (gmt 0)

10+ Year Member



I'm not sure whether I understand your post

Are you saying that Google is showing one of your inside sub level pages rather that your main domain url in its search results?

If so did you promote your sub url more than your main domain?

I.e are there many inward links pointing to your sub url than your main domain?

10:25 am on May 26, 2006 (gmt 0)

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



What happens when you follow the Google link to this page? Does it show a copy of your page or does it redirect to your page? If it redirects, you should probably try a search along the lines of:-

site:webmasterworld.com page-hijacking

There has been much discussion of this problem.

Kaled.

11:01 am on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Sorry, I was unclear; the site is hosted by a major company, which gives me the root directory of "www.companycode12233344444.us"

In this directory, I created a subdirectory that is my website's root and contains the index page as well as a subdirectory with one of my major sites.

Thus, if you google the keyword mentioned above, you normally see the domain (which forwards to the root directory) in that way: www.example.com/subpage.htm

However, today it shows: www.companycode12233344444.us/directory/subpage.htm

That sucks. I don't like that. And it hasn't happened before. Googeling other keywords leads to a normal display of the domain.

Thanks for your advice!

11:07 am on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



An amendment: a yahoo "linkdomain" reveals that my commercial root ("www.example122333444.us") has 9 MFAs linking to it. Could that be the reason?
1:18 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



And another amendment: To make things worse, google displays BOTH urls in some searches, as if it was TWO domains leading to the same content - so if I am very lucky, I'll get penalized for the whole thing...
9:14 am on May 27, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Advice? Anyone? Thanks in advance.
10:05 am on May 27, 2006 (gmt 0)

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



It has been said that using the <base> tag to specify the correct url helps, however, I can't comment on the truth of this.

Kaled.

6:09 pm on May 27, 2006 (gmt 0)

5+ Year Member



I had the same situation. My immediate response was to throw a robots.txt file in the hosting company root directory to ban all access to all robots. On reflection, a 301 redirect would probably have been a better idea. Either way should work, but the redirect might save some of your existing page rank.
8:56 pm on May 27, 2006 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



The base tag on every page and a site-wide 301 redirect will get you out of the mire.
10:04 am on May 28, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Thank you - how can I do a site-wide 301 redirect?
5:15 pm on May 28, 2006 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Add a couple of lines of code to the .htaccess file:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$
http://www.domain.com/$1 [L,R=301]

The above sorts out non-www and www URLs for the main domain. Then add additional RewriteCond and RewriteRule lines for redirecting the other domain to the correct one.

8:58 am on May 29, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Thank you - unfortunately, I don't have an htaccess file (in fact, I just heard the term for the first time and had to look it up what it means).

Do you know of templates I could use? I'm slightly worried to fiddle with the site as I am not knowing about the matter at all. Best,

W.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month