Welcome to WebmasterWorld Guest from 54.226.194.180

Message Too Old, No Replies

Canonical tag and 301 not working - non-www still showing after 6 months

     

chrislloyd515

6:25 am on Apr 19, 2011 (gmt 0)



I am having the same problem on a few of my sites, and I'm wondering if the issue is technical.

For as long as I can remember I've 301 redirected my non-www addresses to the www. equivalent... the 301 is functioning perfectly, checked in multiple online checkers and chrome's about:net-internals tool.

About 6 months ago I also added the canonical tag on all pages referring to the www. page... but still google presents the non-www version of the page in search results.

I'm not sure what else I can do to get google to actually recognize that I've never wanted the non-www url to appear.

Not sure if it's related, but the 301's are handled by a separate server than the main site is hosted from, so technically the non-www and www. domain resolve to different IPs... would this affect anything?

I have plenty of links to the www. version... so really not sure what else it could be!

g1smd

7:21 am on Apr 19, 2011 (gmt 0)

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



Use "Live HTTP Headers" extension for Firefox to check how many steps it takes to get from example.com/index.php (or whatever your index page is called) to www.example.com/. It should be exactly "one", not a multiple step redirection chain.

Check also that the response really is 301 and not 302.

chrislloyd515

7:59 am on Apr 19, 2011 (gmt 0)



Confirmed that it's exactly one step no matter where you go to on the site (both for sub-pages and the homepage)

Also checked with live http headers (same function as about:net-internals on chrome) and that gives the same result, a 301 redirect. (not 302)

this is very strange...

AnkitMaheshwari

8:59 am on Apr 19, 2011 (gmt 0)

5+ Year Member



You can set your preferred domain with-www through Google Webmaster tool console to ensure Google displays URL's with www in search results.

g1smd

9:24 am on Apr 19, 2011 (gmt 0)

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



To be very clear on the original test, type "example.com/index.html" into your web browser, and check the results.

Another thing to check is, do any of the internal links point to non-www URLs?

Run Xenu LinkSleuth over the site and study the report in detail (you will surely find other issues that need fixing too).

realmaverick

4:32 pm on Apr 19, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



I had this issue but on a subdomain. Turned out the place I was trying to redirect to, had a noindex in the meta robots. I'm guessing youll not have differing meta robots.

Definitely check inbound links. I use Seo frog spider tool and it never ceases to amaze me some stuff I've overlooked.

netmeg

5:55 pm on Apr 19, 2011 (gmt 0)

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



I changed a site from www to non-www last year, and it took about a month for everything to switch over - EXCEPT THE HOME PAGE. For some reason, Google in its infinite wisdom displayed the home page with www for four months. Despite the canonical tag, despite setting the preference in GWT, despite the 301 in .htaccess. It's now (finally) set correctly. The only thing I can guess is it's because of inbound links, but I do not know.

beerSEO

6:12 pm on Apr 19, 2011 (gmt 0)



I agree with nutmeg, someone is linking your site with non-www. Do a site command with no www to see what comes up. Otherwise it's just G not doing what you want it to, big surprise...

netmeg

7:51 pm on Apr 19, 2011 (gmt 0)

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



(NETmeg!)

beerSEO

9:26 pm on Apr 19, 2011 (gmt 0)



haha..sorry

g1smd

10:52 pm on Apr 19, 2011 (gmt 0)

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



Two very usefule Google searches:

site:www.example.com


site:example.com -inurl:www
 

Featured Threads

Hot Threads This Week

Hot Threads This Month