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
-
Right way to find quality free/non free directories to submit web page
I have one question about link building. What will be right way to find quality free/non free directories to submit my web page. My web page thematic is nail-art. Thanks and best regards
Moz Pro | | komir20040 -
Duplicate Page Content, Indexing and Rel Canonical Just DOUBLED! Need Advice to Fix
Last Friday (Penguin 5/2.1) my website shot way off the grid and I noticed in my MOZ PRO Campaign dashboard that all of the following just doubled in numbers on my website: duplicate page content, Google indexing, and rel canonicals. I also noticed that some of my pages, images, tags and categories now added a /page/2/ or a -2. I just changed noindex for tags, but indexing for media, pages, posts, and categories. I'm currently using All In One SEO for a plugin. Any advice would be much appreciated as I'm stuck on the issue. relconical.png Duplicate-Page-Content.png [Duplicate Content II](Duplicate Content II) index1.png
Moz Pro | | CelebrityPersonalTrainer0 -
What's my best strategy for Duplicate Content if only www pages are indexed?
The MOZ crawl report for my site shows duplicate content with both www and non-www pages on the site. (Only the www are indexed by Google, however.) Do I still need to use a 301 redirect - even if the non-www are not indexed? Is rel=canonical less preferable, as usual? Facts: the site is built using asp.net the homepage has multiple versions which use 'meta refresh' tags to point to 'default.asp'. most links already point to www Current Strategy: set the preferred domain to 'www' in Google's Webmaster Tools. set the Wordpress blog (which sits in a /blog subdirectory) with rel="canonical" to point to the www version. Ask programmer to add 301 redirects from the non-www pages to the www pages. Ask programmer to use 301 redirects as opposed to meta refresh tags & point all homepage versions to www.site.org. Does this strategy make the most sense? (Especially considering the non-indexed but existent non-www pages.) Thanks!!
Moz Pro | | kimmiedawn0 -
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 -
301 redirect
Guys Another post by me in regard to a 301 redirect which follows on from this post here http://www.seomoz.org/q/seomoz-crawl-test To quickly summarise all i have done is change URL name and done a simple 301 to change name where respective urls form old go to the relevant new pages Ok Now 14 weeks since we implemented our 301, Originally done In PHP everything looked text book but still 80% down on rankings PR has returned to inner pages Home page has not updated After some advice from some of the members here i changed the 301 on the old domain name from PHP to Htaccess This is the code i used on the old server is below RewriteEngine on RewriteRule ^(.*)$ http://www.newsite.co.uk/$1 [R=301,L] On the new site the canonical is fixed by PHP , i want to change this to Htaccess, capturing the canonical element along with removing the trailing slash (This is only what has been done in the past so just keeping consistant) This is the situation Old site sits on a different server from the new so each have their own individual I.P addresses I am convinced somewhere in the PHP application we are chaining so want Htaccess on old server to do the 301 and want htaccess on new server to deal with canonical elements and remove trailing slash (if that best practice) What would be the best way to do this where we wont be chaining 301's at present all looks perfect and doing what it should, but i know there is an issue and i believe it to be with the php script Thanks for taking the time to look Paul Ps where i had the issue on the old site where Crawl test said page don't exist i now have on the new site if i try and crawl the non www. version of the new site , tested on a site that has the htaccess 301 in place and get the option of crawling the old or the new page so something don't stack up so its not the tool its the PHP Fetch as Googlebot and every other tool reports the correct header responses
Moz Pro | | kellymandingo0 -
How many of my linked pages should I redirect (301's)
I'm moving my store to a new site and will have a much friendlier but completely different URL structure. I used Open Site Explorer to find inbound links to 513 pages and have done about half so far. The remaining pages have one link each at a page authority of 27 or less - but there are still 250+ of them. I have to manually view each old page, search for the product on the new site, and enter the redirect as there is no way to translate old URL's to new ones. How important is it for rankings to redirect the remaining 250 or so pages?
Moz Pro | | agirlandamac0 -
301 redirect question from a newb
So, I've been blogging for almost 3 years now. I've always used wordpress, but recently changed from a ProPhoto theme to a Woo Theme (Editorial...don't know if that matters). I've signed up for the SEOmoz website and HOLY CROW I have problems with my website out the wazoo. I am tackling issues one at a time and one of my issues seems to be 301 redirects. If you'd like to see a screen shot of the crawl diagnostics, check it out the attachment. If you'd like screen shots of anything else, just let me know. I'm not sure I'm reading the chart right, but it seems to say that all of my redirecting problems are because my links are redirecting from an http://www..... to a http://http://www... I've been in my wordpress blog post back end and can't seem to figure out how they A. Got like this. and B how to fix it. If I'm reading the chart wrong...definitely let me know. Thank you guys so much in advance! Screen%20Shot%202012-01-01%20at%202.28.19%20PM.png
Moz Pro | | TerraDawn0 -
Help with Roger finding phantom links
It Monday and Roger has done another crawl and now I have a couple of issues: I have two pages showing 404->302 or 500 because these links do not exist. I have to fix the 500 but the 404 is trapped correctly. http://www.oznappies.com/nappies.faq & http://www.oznappies.com/store/value-packs/\ The issue is when I do a site scan there is no anchor text that contains these links. So, what I would like to find out is where is Roger finding them. I cannot see any where in the Crawl Report that tells me where the origin of these links is. I also created a blog on Tumblr and now every tag and rss feed entry is producing a duplicate content error in the crawl stats. I cannot see anywhere in Tumblr to fix this issue. Any Ideas?
Moz Pro | | oznappies0