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
-
My website was at the top of Google search for some years... suddenly I almost can't reach first page! Moz ranks my website better than the competitors... what might be going one? Could anybody help me out? Thanks!
Hello Guys! My website was at the top of Google search for some years... suddenly I almost can't reach first page! Moz ranks my website better than the competitors... what might be going one? Could anybody help me out? Moz rank us grade A... the competitors B or C .. I think we have better back links than they do... Would you need any kind of data or report to help me here? Thanks!
Moz Pro | | wesleyms0 -
How to resolve recurring 302 redirects?
In my Moz site crawl there is a fluctuating number of 302 redirect pages that don't physically exist - most are through a 'compare product' option. The number of 302s varies significantly by how many pages Rogerbot has crawled - the more pages crawled, the higher the number of 302s, so I'm pretty sure it's the 'compare product' that's causing the issue. I can't find a way to remove the compare product button so I need another way to resolve it. I can;t canonicalise the pages as they don't exist as such. Does anyone have any ideas?
Moz Pro | | MrLeeB0 -
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 -
Mozbar SERP Control Panel Help: Export Results Option Not Available
Hi everyone. For some strange reason, the "Export" option is no longer appearing in my SERP Control panel when trying to export results from the SERP Overlay. It worked fine before SEOMoz changed over to Moz, but now the option is no longer available. Is there something I can do to restore this feature?
Moz Pro | | bashseo2 -
I need country specific ranking reports for our Google/Yahoo/Bing positions
Hi Guys, Using the ranking reports given here at SeoMoz I cannot select various countries as it seems to only provide US Google/Yahoo/Bing results. I need ranking reports specifically for Thailand, UK, States, Australia, India, Hong Kong. Does anyone know of any such tools? Many thanks in advance.
Moz Pro | | ewanTHH0 -
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 -
SEO-Experts help answer my newbie questions!
Hello! Thanks for coming to my rescue; I really appreciate it. I am a newbie at SEO and I still haven't got the full picture of everything in my mind that covers linkbuiling, on page optimization, domain names, website creating, etc. I've really pretty much all the available guides on WarriorForum and BHW without much help on the topics above since most of the information was either provided by some person who didn't know what they were talking about, the information was outdated, or I didn't know what they meant. I have so many questions that I hope some SEO-Expert could answer my newbie questions so that I won't get penalized for my two sites that I currently own. One of them was slapped by Yahoo!, Bing, AOL, and most other search engines with the exception of Google (It's only a matter of time of course). The other site I own is in the making currently without much on-page optimization. Before I start doing some on-page depletion t to my two sites so they both get de-indexed and such because of keyword stuffing, fail link building, and other factors, I wanted to cover the problems I currently have about SEO and this site. 1) Using the SEO-MOZ 'keyword analysis tool', what is the ideal percentage difficulty a newbie like me could take easily with just a few links here and there including 5 posts/pages of great content? (I usually only write 5 posts that cover 500+ words each). 2) Do I need hosting to become successful or to get more on-page optimization for my websites? I currently use Go-Daddy forwarding with masking so that when my site shows up in google the content comes from blogger. 3) What is "Self Cannibalization"? I ALWAYS get that error for both my sites when I use the 'on page optimzation tool' from SEO-MOZ. 4) Using Blogger, What exactly are labels and does using this add any SEO value to my website? 5) I've read so many damn articles about ALT text and Title text for blogger; nothing explained what I put in it though. What am I supposed to put in it that will help me with my on page optimization? (Stuff like do I use spaces or dashes, do I put my keyword in there, how many characters should I not exceed, do I put one word or two words?) 6) On my website, I 'accidentally' didn't know that copy and pasting images from paint straight to blogger would be a bad idea because in the html I saw it was f'ed up because there was literally random characters everywhere for the file name. Since my site is a tutorial site, I have over 50+ images in all my posts combined that I've copied and pasted from paint.exe to the Blogger post. Should I reupload all of them to blogger or keep it the way it is? Will I be penalized for this or nothing would happen? Is there a benefit to fixing it? 7) For a new website that is less than 1 week old, when can I start building backlinks? If I can start building backlinks now, what is the ideal number per day that I should create? 😎 Does post every single page or post of content I have on my website to other Web 2.0s like Squidoo, Wordpress, or Blog penalize my website for duplicate content or what? If I do this, does it give me any SEO benefit? 9) How much stronger is a .gov backlink than a .edu backlink? How much stronger are both of those compared to a regular extension backlink? 10) If I am building backlinks, should I link just my main home page URL or all internal URLs to? 11) I see several people that build backlinks to other websites by typing in a comment and throwing their link in there. Like question 10, should I post ALL the links to my website (Internal + Home) or just my main page link? 12) What is better; .com, .net, or .org? What about .info, .us, and .biz in terms of SEO benefit? 13) I have several pages on my site in which Google indexed them and I deleted the post. Now when I search my site on Google and I click on the link to the post, it is pretty much a 'dead link' because the post cannot be found. Does this harm my site in any way, and how can I take these dead pages off? 14) One of my sites is already indexed by Google but not Yahoo! What should I do to get my site indexed? It's already been about a week. Thanks for attempting to answers my questions. I don't have anything to give, but, I can choose 3 'good answers' for helping me!
Moz Pro | | 6786486312640 -
Redirect analysis tool
I'm looking for a tool like this: http://www.internetofficer.com/seo-tool/redirect-check/ that can check hundreds/thousands of URLs and give me a report as to which ones have been redirected. Does anyone know of something that can do this?
Moz Pro | | glass010