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
-
GA Internal Site Search Correct Query Parameter?
Hi Guys, Recently added GA internal site search to a sub-folder: http://tinyurl.com/jhm9cyl Just want to confirm would the query parameter be: /search/ Or different because it's a sub-folder? Cheers.
Reporting & Analytics | | jayoliverwright0 -
Can you track two Google Analytics Accounts on one site?
If you have a site that had an old analytics account and then implemented a new one is it possible to run tracking code that records to both accounts without causing your site or data issues? We are doing this so we don't loose data at any point - ideally it wouldn't have been split between the two but making one redundant isn't an option. Ideally we would have merged the data from both accounts and had one - however the research we have done points to this not being a possibility - unless one of you guys knows different? It would be great if anyone has experience on any this.. Thanks
Reporting & Analytics | | ChrisAllbones0 -
Cross Domain Tracking for multiple sub-domains with multi-lingual and culture versions
Hi, I have a question regarding cross-domain tracking that I haven't seen answered completely elsewhere. A client has a main domain, we'll say www.example.com and 4 or 5 sub-domains e.g. shop.example.com, support.example.com, account.example.com and service.example.com. The different sub-domains are managed by different third parties, with just www.example.com and account.example.com under our control. To add a further dimension, these sites all have multi-lingual versions as folders and in some cases multi-cultural versions e.g. www.example.com/de/ for Germany and www.example.com/ch-de/ for German-speaking Swiss. Not every language/culture has an equivalent site in place for each of the sub-domains e.g. the UK support site serves Denmark and Swiss-German users will use the German site: www.example.com/dk/ links to support.example.com/uk/ for support-based content
Reporting & Analytics | | Nobody1565908128979
www.example.com/ch-de/ links to support.example.com/de/ At present, they use different analytics tracking codes and accounts. Moving forward, they would like to consolidate the data together to be able to see the collective and separate performances. They would also like to be able to see goal completions from referrals when someone clicks from the main domain to the sub-domain or across sub-domains or potentially across language and culture too. I have several questions I would really appreciate some guidance on: What will be the best way to configure Google Analytics to achieve this? Will we need to decorate the HTML links in between each of the sites? Will we need to use a new Google Analytics property? It may not be easy to answer this based on the information above, so I'm happy to provide additional information if required. Thanks in advance for your help.0 -
Fresh Content Still As important?
We have an internal debate, that perhaps y'all can help us resolve. In the past "freshness" of content has been important, correct? (Google's QDF for example) In the past (to present) when we build a site with the intent to SEO the site, we build the core pages with the expectation that we will be adding more site pages as the project progresses, thus settling the "fresh content" factor. But it has been proposed to us, from a client, that completely building the site out with all the pages you hope to rank, getting the upfront bang for your buck. The expectation is that the traffic soars right-off. Now the client says that he has been doing this for years and has not been affected by any alog changes. (although we have not seen proof of this from him) So our question is this: Is it better to provide a website full of fresh content at the beginning of the project, for a jumpstart on traffic, then leave the site alone ( for the most part) or Is it better to have core pages of fresh content at the start, and build out new pages from their, so the website remains fresh every month? And can you prove your argument? (we need cold hard facts to be convinced 🙂
Reporting & Analytics | | Britewave0 -
How Do Queries And Impressions Relate?
For one of our keywords, i have 2,500 impressions this past month, but there were only 1,300 queries according to Google's keyword planner. How can I have more impressions than queries? If anything, I thought it would be the other way around. If someone could flush this out for me, I'd be incredibly grateful. Thanks, Ruben
Reporting & Analytics | | KempRugeLawGroup0 -
Multiple Site Errors Due to Forum
We are currently working with a website that is receiving multiple errors through their vbulletin forum. These errors include: duplicate meta descriptions duplicate title tags duplicates title tags and meta descriptions from the archives as well The forums do not drive a lot of traffic but people are active on there. Would you recommend no-indexing the entire forum plus the archives or is there a better solution for that?
Reporting & Analytics | | axzm0 -
Google Analytics: Do url redirects show up
Good Morning from 6 degrees c mostly cloudy wetherby UK 🙂 A redirect has been set up with the effect that when you key in www.hyload.co.uk it forwards to www.ikogroup.co.uk My question is please...within Google analytics will referall traffic from www.hyload.co.uk show up in referral traffic or because its a redirect will it be counted as direct traffic. Thanks in advance, David
Reporting & Analytics | | Nightwing0 -
Overall site traffic - 3 quick questions
3 things : 1. Does Google factor in overall site traffic in rankings? So for 2 sites, all other things being pretty much equal, the one with higher traffic will be listed higher? 2. Does this logically imply that sites with lower traffic overall face an uphill struggle to be ranked highly??? 3. As an extension to this, would it be true to say that by increasing site traffic, say with Google Adwords or other online or offiline or whatever advertising, that might help get higher SEO rankings??? Thanks so much for your responses. This forum is great!
Reporting & Analytics | | inhouseninja0