Need Help with www and non-www redirect
-
Hi everyone,
I've been looking around the forum and found some similar topics but none of them have solved my problem.
Anyway, I'm new to SEO and found that when I use Open Site Explorer for the www version of my site I see the links directed to my page, but none of my twitter stats show up. When I do the same for my non-www version. I see my twitter stats, but no links. Facebook seems unchanged. Also, the Page Authority is much higher for the www (I assume because of the links)
It is my understanding that it doesn't matter which version of the domain is used, I just need to pick one and stick with it (on Google Webmaster Tools, etc.). And that I also need to do a 301 redirect for the version that I'm not using.
The issue now is that I have a 301 redirect, and when I type in my url in any version (http, https, www, non-www) it all redirects in the browser without issue. So i know users are getting to the right page, but the Open Site Explorer still sees them as 2 different sites. My concern is that if Open Site Explorer sees it this way then Google may see it this way as well and I could be missing out on potential rankings.
I'm currently doing the redirect in the .htaccess file. The redirect looks like this:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mydomain.com/$1 [R=301,L]Any Ideas on what I need to do to properly 301 redirect the site so that my preferred version can get credited with the links,twitter, and Page Authority stats?
Also, I'm using wordpress and it has the URL set to the non-www version of the site. However, I think I would like to change this to the www version because most of the links are directing to www, and I also think people are more familiar with that format.
Anyway, sorry for the long post. Any help would be greatly appreciated.
Thanks.
-
Thanks everyone this was very helpful. I think I have it straightened out now. I've set my preferred domain in Google Search Console, and have changed many of the links to match this domain as well. Thanks again.
-
To Peter's point, I wouldn't worry too much about Twitter share counts since those are going away anyway. You mention what OSE says about links to the two versions of your sites, but what does Google Search Console say? Is it recognizing inbound links to your site?
If your URLs are redirecting to their correct versions, you're likely not losing too much link juice, and if you've made all the necessary changes in Search Console to set your preferred domain, Google should understand and count those links as all pointing to the same domain. OSE will continue to report on links to the www- and non-www versions separately because of how it reports on subdomains, but Google should get the picture loud and clear.
The biggest thing you can do to show Google "this is the real version of my site" is to start building new, high-quality inbound links. Over time, the volume of inbound inks to the preferred version will overtake the volume of links to the old version, which will reinforce for Google what the correct version is.
-
Try to get as many links changed to the page you've redirected to. Not all juice is passed threw a 301 redirect. I'm not certain on the social metric issues. I haven't seen them to be 100% accurate for any page.
-
Today Twitter make changes and implementing new button so shared will be lost.
OSE count non-www and www as different because bot need to crawl all pages to catch 301 redirect. This isn't real-time or quick so you need little patience. Please check canonical on your WordPress and change all of them to new host (www.example.com). You need to change host in WP -> Settings -> General and in Google SearchConsole preferred domain.
For social buttons - there are few ways how they get URL for sharing. Long story short - with site move you will lost all of your sharing statistics except G+ pluses. There is no way to recover them except if you use data-url for them. But you will share different URL then.
IF you wish to keep number of social shares then you need to 301 www to non-www. Within time OSE will catch this 301 and links will push DA higher there.
Anyway - look messy answer but i know this situation. When you make site one of first job is to check www and non-www also http and https. This make 4 checks (and few more with strange domains as ftp.example.com; mail.example.com) totally just to be sure that site can be seen only in one host. Because later 301 can broke something. And delaying this 301 make things more and more complicated.
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
-
WWW used in research URL, or not to WWW
Long time user, infrequent poster.... thanks for taking my question... When I go to gather a series of data elements on a company's URL, the data changes (sometime dramatically) depending on whether the 'www.' is added to the URL & it seems related more to Page data than Domain. My question is about which data I should be using to assess the real strength of the site / page? Is there a 'best practice' question here, a personal preference or is there an actual difference in the performance of the www vs the non-www version? aquGYdz
Moz Pro | | SWGroves0 -
SEO impact of redirecting high ranking mirror site to the main website
During SEO audit for a client I noticed that they had over a dozen duplicate websites that are carbon copies of the main website. This was done via CMS platform and DNS. One of the mirror sites has about 400 indexed pages and has Moz DA of 42 and 137k External Equity-Passing Links. Full metrics comparison is attached. I originally planned on doing rel="canonical" on the mirror site but the CMS vendor never even heard of it and is refusing to implement it in the header. My only other option is doing one to one 301 redirects. Since the mirror site ranks well, even competes with main domain for some positions on the 1st page of SERP, what will be the impact after the redirects? Is doing 301's still the best option? Thanks! PrUpN3q
Moz Pro | | dasickle0 -
Why do crawlers still track meta keywords if it is not needed in my site?
I have crawled three sites already and it returns more than 5000 errors most of which are MIssing Meta Keywords tags. The sites are on Wordpress and using my SEO plugin I can easily edit the meta keywords of each page, but I am having second thoughts. Well should I?
Moz Pro | | jernest0020 -
Need Good Idea for my new site SEO strategy.
Hello, I register new domain and i research on keywords and got 16 keywords for 16 pages one keyword for every page.
Moz Pro | | wildcat143
now i want SEO of my site please give me some good idea how to do my white hat SEO of my website? 16 pages + 16 keywords
How many backlinks submission i can do daily base? Directory submission?
Social bookmarking submission?
Blog comment?
Articles submission?
any more..................... Hope you will give me positive response. Thanks0 -
Wiped from Google Top 50 and Need Diagnostic Help
Hey All, On the 4th of January our site (http://spotcolorstudio.com) Webmaster tools showed a massive drop in the number of impressions we're getting from Google. We went from over 500 to around 100 and we haven't recovered. That week's SEOMOZ keyword report showed we were wiped from the Top 50 for everything we were tracking except our branded terms. I've seen no indicators to why this might have happened. Our Domain Authority hasn't changed. I haven't received any malware notices in Webmaster tools. GetListed.org displayed our Google Places listing as not present despite being able to click through and see our listing displaying as "active." Is it possible there's something wrong with the DNS that I'm missing? What could cause a complete wiping like this that wouldn't trigger an alert in Webmaster tools? Any help, guidance or suggestions will be greatly appreciated! Craig
Moz Pro | | SpotColorMarketing530 -
Way too many 301 redirects
Hi Guys Posting here again in regard to 301 redirects, SEOMOZ has just finished my second crawl, and its showing me nearly 4k 301 redirects, i am only tracking my new site which by the way changed domain name , however all im doing is tracking the new domain and there are no 301 implemented on that side (Except Canonical), so was wondering how SEOMoz is finding 4k of redirects. do you think it could be chaining somewhere ? as all the tests look good or could there be a problem with the reporting
Moz Pro | | kellymandingo0 -
SEOmoz showing crawl errors but webmastertools says no errors, need help!
Hi this is my first question and i couldnt find a similar question on here. basically i have a clients website that is showing 150 duplicate page titles and content errors plus others. SEOmoz analysis is showing me for example is 3 duplicate hompage URLS: 1.www.domain.com 2.domain.com 3.www.domain.com/index.html all 3 are the same page. after explaining to the guy (who built the website) the errors, he ensured me that the main URL is URl 1. and the other 2 are 301 redirects. however SEOmoz analysis doesnt seem to change the results and webmastertools doesnt seem to show any errors at all. also if i try all 3 URL's there are no redirects to URL 1. any help or clarity would be awesome! Thanks e-bob
Moz Pro | | bobsnowzell0 -
Issue with temporary redirects
I have an issue with my temporary redirects. The seomoz campaign is showing many pages are redirecting to the homepage. However, the pages it identifies are old pages and have been deleted and are not on the sitemap. How do i solve this?
Moz Pro | | CompleteOffice0