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.
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
-
Do we need rel="prev" and rel="next" if we have a rel="canonical" for the first page of a series
Despite having a canonical on page 1 of a series of paginated pages for different topics, Google is indexing several, sometimes many pages in each topic. This is showing up as duplicate page title issues in Moz and Screaming Frog. Ideally Google would only index the first page in the series. Do we need to use rel="prev" etc rather than a canonical on page 1? How can we make sure Google crawls but doesn't index the rest of the series?
Moz Pro | | hjsand1 -
Fixing temporary redirects
Hi all, I recently had an issue whereby the Moz crawl was showing up thousands of instances of duplicate content. I solved (or so I thought) this issue on a Magento-based eCommerce website by enabling canonical URL tagging on product pages and category landing pages. This reduced the instances of duplicate content dramatically (by the thousands!) however it created a new issue of thousands of temporary redirects. All of the research I have done has suggested that I should be setting these as permanent redirects somehow, but I am not sure how to do this or how to resolve this issue. Any help will be greatly appreciated. Thanks very much. Josh
Moz Pro | | Mediademon0 -
Do I need to set the country in Webmaster Tools even if I am set to apply the hreflang tag to our different country pages?
We are global brand that will be migrating to a new platform in the next few months. As such, this will allow us to fix our current SEO issues. We are planning on using geo-targeted subfolders instead of country code top level domains primarily because of resource limitations. My question is - do I need to set the country in Webmaster Tools even though I am already going to tell Google that certain pages are targeted towards a specific country?
Moz Pro | | marshseo0 -
HELP - Configuration Killing Me, Dying on Google, About To Give Up
My organic Google traffic just completely died and it is not Panda related. I really need someone to offer some suggestions because I am about to give up. This is going to be a bit complex .. Here is the skinny: I have several relatively new sites. My main site for the purposes of this discussion is smartwatchnews[dot]org and I host my sites on wpengine.com. My traffic was was slowly building and I was averaging 2000+ unique visitors per day on 8,000 highly ranked Google impressions. In addition, Google was indexing my new posts about an hour after they were made. After reading seoMoz in its entirety and subscribing to Moz PRO, I decided to streamline my site, and focus my content to provide a better user experience. Here are the changes I made: 1. For ease of administration, I converted all of my sites into a single multisite wordpress installation. For some reason, Google now has half of my pages listed on the master site smartwatch.smartfamily.wpengine.com, and not on smartwatchnews.org. I have implemented 301 redirects for the pages at issue hoping to fix this problem. 2. At the same time, I also streamlined my categories and tags and used 301 redirects to route users to the right pages. 3. Finally, I subscribed to Moz Pro, analyzed my sight, and reduced usage of my keywords to around 3%. I had not stuffed, but the focus of my site necessarily resulted in me using certain words frequently. Within one week of implementing the above-listed three tweaks, I went from getting 2,000+ visitors per day to ~200 and my Google impressions went from around 8,000 highly ranked per day to approximately 150 poorly ranked. In addition, Google went from indexing my site hourly to indexing about once per week now. I do absolutely no blackhat, link-building or marketing of any kind. Other interesting things I have noticed: 1. Several SEO companies have linked to my site recently ... for example, all of a sudden, chkme.com just showed up in Webmaser Tools with over 1,000 links to my site. I have no idea who they are. 2. Google Analytics shows that my site has an average page load time of 33 seconds! It has never taken me more than 2 or 3 to load one of my pages and I have Google PageSpeed scores in the 90s. I guess what I really want to know is, can I just create a bunch of quality content over the next few months and the problem will remedy itself, or is there an obvious problem that I need to fix? I am at my wits end ... can anyone offer any suggestions before I simply chuck the whole thing? Thanks in advance for ANY assistance, ideas, or simply "hang in there's" ;-(
Moz Pro | | Humanovation0 -
SeoMoz reporting 301 redirects I can't find
So I'm trying to find a bunch of redirects that SeoMoz is reporting that were created by Wordpress but I can't seem to find. I'm finding a bunch of redirects FROM pages like this: www.mysite.com/wp-content/themes/mimbo/page-name.com redirecting to www.mysite.com/page-name.com Anybody have any idea how I can track down the offending page that has a link to that url. I took a look at my templates and content with the pages and can't seem to find anything that would create it.
Moz Pro | | brandco0 -
Old Incoming Links Redirected to new pages are not Being Factored on the Open Site Explorer
Hi, My website has been online since 1994. We have old links pointing to pages that no longer exist so what we have done is to create redirects to the specific page where the content is being displayed now. However, when we use the Open Site Explorer, the linking root domains do not show those sites that contain old links pointing to our domain. One good example of this one is: dmoz.org. Am I improperly handling the redirects? Or, what do I have to do so that old links that are being redirected to the new pages where the information is are accounted when calculating domain authority and trust? Thanks, Alex
Moz Pro | | costarica.com0 -
302 Redirects on Xcart Store
The crawl finished on the site easydecals.com and I'm getting over 4,000 warnings with 302 redirects with urls like this. /How-To-Install-A-Wall-Decal.html?xid_33e42=01f75b1ca2a53108d78f5c598ffd99e6 What can I do to remove or stop the spider from hitting those?
Moz Pro | | i1560