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
-
If I have set up my www as a cname, do I still need to add a redirect?
Hello, I am trying to minimize my redirect chains that have been popping up in my Moz crawl issues. So I'd like to get clear on some best practices. I have a few clients that are getting their first redesign in a while. We are moving into Wordpress from good ole .html files. So I've installed a redirection plug in to create 301 redirects for those .html versions of the pages. But apparently I am already redirecting from www to non-www. I have the www set up as a CNAME going to the IP address - is that counting as the redirection? Sometimes though, the www is set up by making it an A record. Is one way better than the other? Finally, I'm forcing https for all my new sites now. Is whatever the host does to "force" https also counting as a redirect and contributing to my chain? Any advice will be appreciated!
Moz Pro | | Dandelion0 -
Help talking to an aggressive web team (1st time in the forums)
Hello All! I am a long-time Moz user, but not super technical myself. I'm used to asking a web team to fix something, based on the reports, and they do it. I'm trying to communicate with a really aggressive web team about a site that's showing about 16,000 errors every week on my Moz reports. What I'm trying to figure out is if they are right or not, so I can either ignore them or push harder. Can someone help me with how to explain these to them or let me know if they are right? These are the two biggies I'm struggling with: b. Duplicate page content
Moz Pro | | Renia
Example: https://www.whiteheadindustrial.com/c-104-abrasives.aspx?pagenum=1 and https://www.whiteheadindustrial.com/c-104-abrasives.aspx Their explanation: I wonder if MOZ is not reading the infinite scrolling pages the way that Google does. We have followed Google’s directions for how to let Google know that each page is a successor of the previous one, so no duplicate content. But probably MOZ tool does not view the code on the page the same way. So I think this is not relevant for Google indexint. Second:
Example 2: https://www.whiteheadindustrial.com/p-19708-4-point-mandrel-and-hex-nut-116-hole-18-shank-nocra-13440-m.aspx
https://www.whiteheadindustrial.com/p-30356-working-peanut-knife-no-046-6220-ss.aspx
In Example 2, the only duplicate content I can find is the “Stocking data Current as of… Please note:..” and the Customer Reviews area. c. Duplicate page title
I wonder if MOZ is not reading the infinite scrolling pages the way that Google does; because the duplicate page titles are related to category page I would be super grateful for any guidance!1 -
No page authority for https and www versions
In Moz page onsite explorer, I'm getting a page rank of 1 for https://productcategory, and www./productcategory, but for the non-www version, I have a page rank of 33. The DA for each link is 25 Google is indexing my https:// version of my site (with the page rank of 1). Could this be why I'm getting outranked by my competitors (who have no content on their page, no links, and a lower domain and page authority than me?) Does this indicate some kind of issue with my redirections or settings in google search console? I would love to know how to fix this if it could be causing issues Thanks
Moz Pro | | Golden850 -
Need advise/strategy for cleaning up backlinks to my site
I recently redesigned my website (studio35design.com), and with that, I'm finally paying attention to SEO. I used a few different tools to find the amount of backlinking domains I've built up through the 7 or so years. The numbers are the following: 52 Total Backlinking Domains (800+ links):
Moz Pro | | rubennunez
• 17 of those are from blog commenting - they are pretty much all NF
• 20 of those are from sitewide footer credits on websites I've built. They are all old, as I stopped adding sitewide links to my client sites over a year ago.
• 7 of those are from spam. My site was hacked last year which contributed to alot of it. I've since then completely scrapped my old site and built this one on webflow (Not self-hosted like my old WP site).
• The other 10 or so are from forums, and the odd photo credit. As you can tell, almost none of these backlinks links are really any good. I'm surprised that my DA is 27 really. So moving forward, I need to know the best strategy dealing with these "bad" links. For the spam, I'm going to disavow in google webmasters. As for the rest, here are my questions... QUESTION 1:
As for the sitewide links, would the best thing be to remove the link altogether from the footer of each one of those sites? Some I can't because they are really old, and I don't have access to them (I'll probably disavow), but the rest I can still go in and update. QUESTION 2:
Will removing a ton of links at once hurt my DA and my google ranking? I can probably eliminate 500-600 links within a few days just by removing the sitewide links. How quickly can I expect those links to drop off? A few months? QUESTIONS 3:
Should I disavow blog commenting links even though they are NF? Does it matter at all? QUESTION 4:
I noticed 5 or so of the domains I have links one aren't working domains anymore. How quickly can I expect those links to drop off? Thanks in advance for your help.0 -
Help me to know why are all pages not being tracked by the Moz tool for on-page optimization reports?
The On-page Optimization report that the Moz tool shows, is not tracking all the pages from my website. I know this because it isn't showing a ranking for all pages on my website. Is there a particular reason why this is happening? It is important for me to know details of all pages, else it does not give me a comprehensive picture of what's going on in SEO.
Moz Pro | | jslusser0 -
Title missing or empty on non-html downloadable files?
My site, www.cnccookbook.com, has lots of links for downloading files. These files are not html and they don't have .htm or .html extensions. So why does SEOMoz flag them for missing titles? Is there some other way these files should be handled for better SEO?
Moz Pro | | CNCCookbook0 -
301 redirect question from a newb
So, I've been blogging for almost 3 years now. I've always used wordpress, but recently changed from a ProPhoto theme to a Woo Theme (Editorial...don't know if that matters). I've signed up for the SEOmoz website and HOLY CROW I have problems with my website out the wazoo. I am tackling issues one at a time and one of my issues seems to be 301 redirects. If you'd like to see a screen shot of the crawl diagnostics, check it out the attachment. If you'd like screen shots of anything else, just let me know. I'm not sure I'm reading the chart right, but it seems to say that all of my redirecting problems are because my links are redirecting from an http://www..... to a http://http://www... I've been in my wordpress blog post back end and can't seem to figure out how they A. Got like this. and B how to fix it. If I'm reading the chart wrong...definitely let me know. Thank you guys so much in advance! Screen%20Shot%202012-01-01%20at%202.28.19%20PM.png
Moz Pro | | TerraDawn0 -
Redirecting duplicate .asp pages??
Hi all, I have a bit of a problem with duplicate content on our website. The CMS has been creating identical duplicate pages depending on which menu route a user takes to get to a product (i.e. via the side menu button or the top menu bar). Anyway, the web design company we use are sorting it out going forward, and creating 301 redirects on the duplicate pages. My question is, some of the duplicates take two different forms. E.g. for the home page: www.<my domain="">.co.uk
Moz Pro | | gdavies09031977
www..<my domain="">.co.uk/index.html
www.<my domain="">.co.uk/index.asp</my></my></my> Now I understand the 'index.html' page should be redirected, but does the 'index.asp' need to be directed also? What makes this more confusing is when I run the SEOMoz diagnostics report (which brought my attention to the duplicate content issue in the first place - thanks SEOMoz), not all the .asp pages are identified as duplicates. For example, the above 'index.asp' page is identified as a duplicate, but 'contact-us.asp' is not highlighted as a duplicate to 'contact-us.html'? I'm a bit new to all this (I'm not a IT specialist), so any clarification anyone can give would be appreciated. Thanks, Gareth0