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
-
Unsolved How Does MOZ Pro Help An E-Commerce Site Gain Rankings?
Added Maximum keywords on Moz Pro - Updated our SERP and optimized metas for all our products on Bookscardsnbikes. We are sorting out bad backlinks - and have google ads + and boosting our seo. And yet - no traffic or customers [minimal] Have been a business for one year. In short: can you take a look at our moz [Site Audit] and explain what we're missing to get our company off of the ground. We are more than okay with criticism - it helps us grow. Our layout and site design is completely fine and what we want. But we think its just a matter of being a new site that we aren't getting the amount of business we COULD have. Is the 200$ a month worth it? What is moz doing to help us grow? Best. Bookscardsnbikes
Moz Pro | | bookscards15520 -
I'm newly hired to start the SEO department at a company with 50+ websites, 30+ brands... Need help organizing this.
I was recently hired at a company with 30 brands, and many information portal sites. I'm having trouble figuring out how to squeeze 50+ sites into the 5 site limit of our Moz plan, and how to aggragate/organize all the sites into a system for the CEO. Imagine you wake up one day, and you now have 50 clients, all with heavy demands... And they all have the same CEO, who doesn't understand SEO, and expects you to explain everything to him in basic terms. The CEO wants more micromanagement, more analysis, more organization... Not quite sure how to go about it. I have woorank for some good data to act on. I setup a whole slew of google docs to track my workers and their SEO off-site tasks. I have buzzbundle and have setup nearly 100 accounts with my Social Media employee... It seems the CEO always feels that I'm not organized enough, not on top of enough etc... But its a massive job, and I was hired to literally start the entire department myself! They may be hiring an 'assistant' for me... But I'm worried the CEO feels that I'm just not on the ball enough... And with Moz, having only 5 'campaigns'/websites I can have going at a time... I'm short by at least 45 'campaigns'. Order another 10 Moz accounts?? There must be some solutions.. Thanks guys
Moz Pro | | iDingo2 -
I need to get a page in the top 3 Google results for my keyword "teaching jobs" but am struggling to do so! Can anyone help?
I'm trying to get this page http://www.eteach.com/teaching-jobs to rank as the top search result on Google with the keyword "teaching jobs" but it seems to be number 5 in the results! My competitors are totally kicking my arse on getting this page to be above my website. I've got the keywords in there, I have the right content and I have links, what more can I do to make it rank as number 1! Help please!! If anyone has an SEO check list of things I need to make sure I do on my pages for them to rank in the top 3 results then that would be really handy!
Moz Pro | | Eteach_Marketing0 -
Non search traffic in a report, user data etc
Are there any plans so we could add more data from Google Analytics to the seomoz reports? At the moment the reports are nice but my clients want to know the bigger picture than just the search traffic. They need to know the total traffic, the bounce rate, pages viewed etc - data in Google Analytics. There are other seo type tools which offer this information when you generate reports and if seomoz were to allow it then it would make life so much easier as I would not need to maintain a subscription here for the cool tools on offer and to offer websites at up to $100 a month just to generate client reports.
Moz Pro | | MegaFastMoz0 -
Need help with Opensite explorer
Hi, Every time i try to create an advanced report with Opensite it will get to around 4-6k links and then start to finalize the report, however it says i have 750k links aiming at my root domain. I have not used any of the page/domain authority filters, any ideas on why this could be cutting me off? Kyle
Moz Pro | | kyleNeedham0 -
My trial ends on 2nd June. Can I cancel it on 1st or we need to initiate it before that , to not get charged ?
I need to cancel my trial. It ends on 2nd june as per seomoz. When can i cancel it exactly to avoid charges.
Moz Pro | | VarunBansal0 -
Best directory submittal program? Or at least a comprehensive list of non-spammy directories somewhere?
There's a ton of directories. Has anyone had success with a program that will take your info for a site and submit it to all of them at once? Bonus points if you can vary the anchor text and description. Paid or free. And whether there is anything like that, which actually works, I am wondering if there is some relatively authoritative, relatively comprehensive list of non-spammy directories. Any other directory advice would be awesome! Thanks!
Moz Pro | | TheEspresseo1