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
-
Solved Would my site's DA be transferred if I redirect to another?
Re: How to create link from google redirect? I am thinking of changing my domain name from https://experts.ng to https://expertsclan.com and wondering if my DA could be transferred to the new site
Moz Pro | | dodo1234 -
Tools necessary for a Technical Audit of website with penalties and need remediation?
Tools necessary for a Technical Audit of website with penalties and needs remediation? I am being tested for a job interview to prove and/or disprove a website has issues. I am familiar with Moz tools but I'm not sure of the procedure for this request? I am not finding anything online. The client will be giving a website and I will be doing this audit. What tools would you use? What exactly should I be looking for? What are some obvious fixes? WHERE CAN I LEARN MORE?
Moz Pro | | Joseph.Lusso0 -
I have a duplicate content on my Moz crawler, but google hasn't indexed those pages: do I still need to get rid of the tags?
I received an urgent error from the Moz crawler that I have duplicate content on my site due to the tags I have. For example: http://www.1forjustice.com/graves-amendment/ The real article found here: http://www.1forjustice.com/car-accident-rental-car/ I didn't think this was a big deal, because when I looked at my GWT these pages weren't indexed (picture attached). Question: should I bother fixing this from an SEO perspective? If Google isn't indexing the pages, then am I losing link juice? 6c2kxiZ
Moz Pro | | Perenich0 -
Question on redirect and internal link count
After crawl I saw that dup content came from domain.com/index.php and domain.com. I was going to redirect one of them but im curious which way to go. The /index.php has domain auth of 19, the other 17, so not big difference. Domain.com has 2 external linking domains and index.php has 1. The big difference is in the internal link counts where index.php has 76 and the other only 4. So should I direct index.php to / or the other way around?
Moz Pro | | satoridesign0 -
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 -
Non-branded keywords sending search visits???
Hi, You announce a number of keywords sending search visits much larger than what you show in the interface. How do I get the list of the keywords you found?
Moz Pro | | ResourceLab0 -
Why are we not ranking? We have done all we can think of. Can you help?
We have an old domain that we have had for years now. And recently. December, we completely redesigned the site, I mean a complete overhaul, design, architecture, asp to php for example. Resubmitted to google via webmaster with a new site map etc. Our website for reference is www.completeoffice.co.uk. We are trying to rank in UK google, www.google.co.uk, for the term office refurbishment kent (we are on page 2) and office refurbishment (we are on page 17). This is confusing me, because thats 7 pages lower than we were originally, before the site design, its better seo wise, duplicate content is none, title tage meta tags all correct, domain authority has doubled from 12 to 24 in a few months all in an effort to rank better. our homepage and office refurb pages both got an A on the on page SEOmoz tool test. So we dont understand why we are not ranking highly. It seems sites, much uglier and less seo friendly than our with same or lower domain authority are ranking at least 10 pages higher than us. Why is this? Can anyone help or give us a few suggestions. All help greatly appreciated. SEOmozzers.
Moz Pro | | CompleteOffice0 -
Drastic Difference between Ranking in Seomoz Keyword Ranking and non-personalized Google US Search
Hi everybody, for some of our keywords we saw a huge drop in ranking in the Seomoz Dashboard, yet when performing a non-personalized Google US search we still hold our old positions. Now, I am worried whether this is an upcoming Google penalty or just some bug in the latest crawl. Did anybody ever experience something similar and how could we find out if we were indeed penalized by Google (as we did some major linkbuilding campaign for these keywords recently)? Cheers and a major thanks for your suggestions, Tobias
Moz Pro | | space560