Www and non www versions of the site: 301 redirects but I still get impressions on the wrong version
-
hallo,
I moved from www.bastabollette.it to bastabollette.it, setting a 301 redirect.
If I check google search console, I still get impressions and looks like all old www pages are stille indexed. (see attached)
why? how can I fix this?
thank you
-
Bene!
I just crawl your site and i found that almost everywhere links are correct. PM me in private to sent you links that are http://www. or https://www.
BUT - the problem is that there isn't redirect 301 for the PDFs... Example: https://www.bastabollette.it/wp-content/uploads/2013/11/MODULO-DISDETTA-CONTRATTO-CON-NOTE1.pdf should redirect to https://bastabollette.it/wp-content/uploads/2013/11/MODULO-DISDETTA-CONTRATTO-CON-NOTE1.pdf but redirect won't happen and www return "200 OK". This is serious bug and affect all PDFs. Situation is even worse because this is also for CSS and JSs: https://www.bastabollette.it/wp-content/plugins/jetpack/css/jetpack.css?ver=3.8.1 or https://www.bastabollette.it/cdn-cgi/scripts/zepto.min.js Yeah... could be worse? YES! Images too https://www.bastabollette.it/wp-content/uploads/2015/08/logo2.png or https://www.bastabollette.it/wp-content/uploads/2015/09/Cattura-002.jpg
So why this is important? You was need to make unconditional sitewide 301 redirect to www to non-www. Your redirect is partial and seems that affect only html files. If you're in Apache just need to do this in .htaccess.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
RewriteRule ^(.)$ http://%1/$1 [R=301,L]If you're on other servers - LiteSpeed, nginx or IIS just contact me and i will provide commands for them.
-
hey Peter!
sto molto bene grazie!
grazie moltissime for your answer.
-
yes I already set preferred domain in SearchConsole
-
I did not set canonical pages to new domain BUT i 301 redirected all traffic for www to non-www. isn't that enough?
-
yes I changed wordpress so that default is now non-www
-
I am gradually changing all the links to the internal pages as well as all assets to non-www (but it's huge since I am doing manually.
Anyway since I 'told' google that my site is now non-www (submitting new site maps, setting up 301s and the configurations above) I really can't understand why google still indexes the old non-www.
Any hint?
Thank you again
-
-
Ciao Giorgio! Come stai?
Did you use set preferred domain in SearchConsole? https://support.google.com/webmasters/answer/44231?hl=en
You also need to set canonical pages to new domain (non-www). And also change in WordPress that default is now non-www. And change link to all pages (internal) from www to non-www. And after this you need to change link to all assets (JS/CSS/Imgs/PDFs/etc) to non-www.I bet that your move was partial because some of point above isn't make correct.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Google Analytics Set-Up for site with both http & https pages
We have a client that migrated to https last September. The site uses canonicals pointing to the https version. The client IT team is reluctant to put 301 redirects from the non-secure to the secure and we are not sure why they object. We ran a screaming frog report and it is showing both URLs for the same page (http and https). The non-secure version has a canonical pointing to the secure version. For every secure page there is a non-secure version in ScreamingFrog so Google must be ignoring the canonical and still indexing the page however, when we run a site: we see that most URLs are the secure version. At that time we did not change the Google Analytics setup option to use: "https" instead of "http" BUT GA appears to be recording data correctly. Yesterday we set up a new profile and selected "https" but our question is: Does the GAnalytics http/https version make a difference if so, what difference is it?
Reporting & Analytics | | RosemaryB1 -
High Temporary Redirects: Login required pages
Noticed something interesting, a high temporary redirect report from Moz. Reviewing the pages they are caused by the user having to login and getting redirected. I can see the returnto query in the URL too. My thoughts: Since a login is required and the user is being redirected, these should remain 302 and not 301. I tested my Google Analytics account to **Exclude URL Query Parameter **returnto, just to see if it affected traffic. It didn't, I mean I don't see urls duplicated with the parameter anymore, just grouped together, so traffic is still being counted. I'm going to wait 1 more day and see what impact the GA traffic is before applying the exclusion to my true Google Analytics profile. This got me thinking, I should probably exclude this parameter from Google and Bing Webmaster Tools, that way Google/bing won't read those urls. Now does Moz's crawler follow that? Do you think that would change my moz crawl diagnostic report because I told Google/Bing crawlers to exclude that parameter. What do you think of my approach to reduce these high temporary redirects reported by Moz? Will it work? Has it plagued you?
Reporting & Analytics | | Bio-RadAbs0 -
How can you tell if Google has already assessed a penalty against your site for spammy links?
Is there any way to tell for sure if there is a penalty? My client has a ton of low quality back links, and I think they are in danger of a Penguin penalty. Any way to know? The links are there for a business reason.... their clients mention them in the footer, with a backlink. It is not a link scheme. but folks are generally not clicking on a footer link, and so there is a pro/con of leaving it as it. Any way, to diagnose whether a Penguin penalty has already hit?
Reporting & Analytics | | DianeDP2 -
Google Webmaster Tools is showing wrong data - help?
Hey all, I'm seeing some weird problems with Webmaster Tools. Specifically: We've submitted a sitemap with 174k URLs. According to the WMT dashboard, only 21 are indexed, though if you search our site via site:sitename.com blah blah, there are thousands of pages returned. Why is WMT only showing 21 indexed pages? Yet if I go to Health -> Index Status, it's showing nearly 199k URLs indexed. This seems consistent with searching Google site:sitename.com blah blah. Under "Search Queries", it's showing "no data available". Not sure why as it's linked to the proper Google Analytics account, which has keyword data. Any ideas what I'm doing wrong here? Thanks.
Reporting & Analytics | | chimptech0 -
301 Tracking with Google Analytics hurts SEO?
Hey guys, I have an old-domain.com and a new-domain.com. old-domain.com has reputation and through a 301 redirect it's handling it over to new-domain.com. I want to know how many people still visit old-domain.com and track this with Google Analyitcs. I read the best solution for this would be a Google Campaign URL. My question: Does a URL like "http://www.new-domain.com /?utm_source=&utm_medium=redirect&utm_campaign=" hurt the effectiveness of the 301 redirect?
Reporting & Analytics | | optimiert-es0 -
Webmaster Tools Showing Non-Existent Rankings
Hello World(pun intended) I am seeing a phenomenal keyword phrase ranking at an avg. 9.9 on google webmaster tools but not actually seeing the ranking in reality. If i did I would be rich. Does this mean I will soon see this ranking?
Reporting & Analytics | | TheGrid0 -
How do you set www vs non-www in Bing Webmaster Tools?
A site of mine is showing as example.com instead of www.example.com in Bing and Yahoo. I know where to set the preferred domain to www in Google Webmaster Tools, but I can't seem to find that function in Bing Webmaster Tools. Can someone please point me in the right direction?
Reporting & Analytics | | DentalPlanSEO0 -
Email campaigns. Should I link to my blog or to my site?
I have a client for who we write and post a daily blog article. The articles are optimized and linked to particular targeted content on his top level site. Now we are going to start e-marketing to his 3000+ website users to announce inventory changes and specials. My question is (from a SE standpoint) are we better off linking the e-mail content to the blog and introducing people to the blog (but adding an additional step for getting to the new inventory. Or are we better off putting a link in the HTML E-mail letter that we send out to both the blog and separately to the inventory section? Just to clarify, we wonder if the search engines would provide some additional authority for the extra blog traffic and thereby build the overall score of the blog & site. We are looking at the e-mail campaigns as a potential opportunity to impact SE scores not just awareness of new inventory. Thanks everyone!
Reporting & Analytics | | webindustry0