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 -
Help us with Moz Academy!
Hey Q&Aers! I just wanted to create a discussion thread here to talk solicit some feedback and help with Moz Academy! We want your help coming up with future lessons so we’re getting you the content you need. So, think about what you’d or your team would like to learn from Rand and others at Moz. Let us know! “So, what is Moz Academy?” you may ask. Well, Moz Academy gives subscribers the power to be better marketers, which will enable them to use Moz’s products with more depth and awesomeness. We want to provide a hub of marketing knowledge that will create a stronger community where people can teach each other while using Academy as a frame of reference. The key to this project is empowering you to kick even more ass than you already do! If you have any questions about Moz Academy, feedback about lessons, or ideas on a future curriculum please feel free to get involved in the discussion below. Looking forward to see what everyone comes up with.
Moz Pro | | Nick_Sayers1 -
Issue: 301 (Permanent Redirect) with my wordpress
I see in my campaigns in seomoz pro account...
Moz Pro | | sandyallain
it says that I have two urls with issue 301 (Permanent Redirect) What to do within my different content management systems WordPress ? here are the errors:: Page Title URL Redirects to Page Authority Linking Root Domains http://www.simplymadrid.org/blog/ http://www.simplymadrid.org/blog/ http://www.simplymadrid.org/blog 14 1 http://www.simplymadrid.org/es http://www.simplymadrid.org/es | http://www.simplymadrid.org/es/ | 24 | 2 |0 -
Who wants to help go over my crawl diagnostics via skype?
I have run a crawl diagnostic on my site and have 194 errors and most of them are 404 errors in wordpress. Not sure why, but many of my pages had name changes (possibly a permalinks issue) but I have no idea how to fix it. I had 5 duplicate page titles, and 1 tile missing or empty. 72 crawl notices found (2 permanent redirect, 17 blocked by robots, 53 rel canonical) 19 Crawl warnings were found Who wants to have some fun?
Moz Pro | | starkSEO0 -
Domain redirection www or without
when i start campain for the first time it says " "Roger has detected a problem: We have detected that the domain www.xxxxxxtour.com and the domain xxxxxxtour.****.com both respond to web requests and do not redirect. Having two "twin" domains that both resolve forces them to battle for SERP positions, making your SEO efforts less effective. We suggest redirecting one, then entering the other here." How to resolve this and how can i redirect xxxxxxtour..com to www.xxxxxxtour.com ? Thank you
Moz Pro | | innofidelity0 -
301 redirect
Hello, I received a crawl diagnostic report for the website http://www.advancedemt.com here's what it said: Issue: (301 redirect) Page Title URL:http://advancedemt.com/ Redirects to:http://http://www.advancedemt.com/ I called seohosting.com for help: They checked my .httaccess file and did not find anything that would cause this 301 redirect.. Cpanel was evaluated for a 301 redirect and nothing there either. MyPHP Admin was checked for anything that could possibly cause this issue. They had a tech search the entire database and no luck on any issue that may be causing the SEOmoz software to pick up this 301 redirect. We checked the Wordpress settings... No discrepancies. Wordpress permalinks... No problems..... We checked Google to see if they may have indexed the site for the error with no luck... I told the SEO Hosting staff that the canonical feature that has been built into Wordpress would prevent this redirect from allowing Google to index the site with this error. Is it possible that the crawl diagnostics is wrong??? Please help... Best regards, Jeff Bratcher (404) 520-2385
Moz Pro | | Jeff10 -
Confused on www vs non-www
Hey Everyone... Really new to the SEO world and have learned tons each day. When I joined SEOmoz I went to my host and set up the 301 direct to have frogfanreport.com go to www.frogfanreport.com. After a couple of days I noticed that Rogerbot only crawled 1 page on www.frogfanreport.com. Looked into the community posts to try to find an answer. So, I went in and took the 301 direct off and setup a new campaign just for frogfanreport.com. It has now crawled over 300 pages. Not sure what I need to do or if I just did not set it up the 301 direct correctly. Looking at the link stats the root domain stats are obviously the same. The subdomain stats is where there is a big difference: www: ext f links 1, total ext links 5, total links 5, f root domain 1, total linking root domain 4 non-www: ext f links 76, total ext links 109, total links 7.962, f root domain 11, total link root domain 19 I am guessing that I should go back in and put the 301 direct from www to non-www? Is this going to affect RogerBot going in? Or did I just not set it up correctly? zach
Moz Pro | | TCUFrogFanReport0 -
Crawling a website with redirects
Hi, I started a campaign for a website which uses multiple redirects before showing the real content. in the crawling report only one page is crawled. Is there a way to let the crawler pass the redirects to get usefull reports? The website is www.cegeka.be Thank you
Moz Pro | | Cegeka0