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
-
Only 2 Inbound Links which are the Redirect 301 Links
Hello Everyone, We're having a serious Problem with the ranking of our website so we started testing the website in different Tools. Almost all of the tools say our website works great and in comparision to our competitors we win in almost every test – but we rank behind them. The only thing that makes me wonder is the fact that our website has only 2 Inbound links (Open Site Explorer) when the link source is set to only internal. And the only links shown are 2 links that come from the old http (we're using https) and redirect 301 to our https. No other links – in other tools we have around 80 internal links to our rmain https-webadress. Does anyone have an idea where that comes from? I'm afraid this might be our issue in ranking behind of lots of our competitors. Lokking forward to your ideas and suggestions.
Moz Pro | | Franksen3o3
Greets Frank0 -
Magento- Temporary Redirects
Hey guys! My organization just launched an eCommerce site and we are receiving a lot of temporary redirect issues. How do you solve this issue (36k of them) within Magento Enterprise? 1. All settings have been changed to 301 redirects but I am still receiving the same errors during my crawl report. 2. Website URL = www.CanyonOS.com Any support or advice is greatly appreciated! Oh and if you need any toner, you know where to go :)! Sincerely,
Moz Pro | | CanyonOS0 -
Redirected pages still sending response code 200
SEO Moz tool reports missing title tags on all the links that have been redirected. E.g. this page: http://www.imoney.my/ms/personal-loan When I check the response code on the page with redirect checker it shows code 200 (page exists). Has it happened to anyone else? How can a redirected page send a 200 code?
Moz Pro | | imoney0 -
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 -
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 -
This Rookie needs help! Duplicate content pages dropped significantly.
So I am pretty new to SEO Moz. I have an e-commerce site and recently did a website redesign. However, not without several mistakes and issues. That said, when SEO Moz did a crawl of my site, the results showed A LOT of Duplicate Content Pages on my site due to my having one item in many variations. It was almost over whelming and because the number of pages was so high, I have been trying to research ways to correct it quickly. The latest crawl from yesterday shows a drastic drop in the number of duplicate content pages and a slight increase in pages with too long page titles (which is fixable). I am embarrassed to give the number of duplicate pages that were showing but, just know, it's been reduced to a third of the amount. I am just wondering if I missed something and should I be happy or concerned? Has there been a change that could have caused this? Thanks for helping this rookie out!
Moz Pro | | AvenueSeo0 -
Is Open Site Explorer ignoring 301 redirects now?
I just recently saw a huge decline in the page rank of a specific page on my site. When I investigated a bit further I noticed that the drop in page rank looks like it is due to the fact that most of the links to the page come through 301 re-directs from an old page. I know you just made a change to Open Site Explorer. Did you change the way that you are treating 301 re-directs? Here is the new page: http://www.justjen.com/shop/big-sister-tshirts.htm Here is the old page: http://www.justjen.com/shop/bigsister-tshirts.htm Up until the last couple of days, the new page was showing the links from the old page in your cache, but as of today, the new page is only showing the links that go to it, not the links to the old page that is re-directed to it. If there was a change recently, was this intentional (trying to replicate the search engines better) or is it an oversight or database anomaly?
Moz Pro | | gametv0 -
Www.mydomain.tld same as mydomain.tld - unexpected results
Hi I set up a campaign to monitor a website and chose to track the root domain, however the report showed every single page on my website was duplicated with itself when seen as www.mydomain.tld as opposed to just mydomain.tld. I deleted the campaign and set it up to monitor only the www.mydomain.tld as I don't use any other subdomains, however in Bing results the website is listed without the www and so is not recognised in the ranking checker. How can I set it up so that seomoz recognises the pages as the same either with or without the www?
Moz Pro | | PandyLegend0