Redirecting non-www to www
-
Hi all,
I recently ran my first diagnostic test with SEOmoz and was alarmed to find my company's site has over 8,000 cases of duplicate content, virtually all of which can be attributed to separate domains, www vs. non-www.
So after some research I found that this can be solved easily using .htaccess. However I found a warning on another site that if my site has already been indexed by Google without the www, there could be side effects like a loss in PR.
Can anybody tell me how to find out whether my site falls into this category? I do have access to Google Webmaster tools but I can't find anywhere that tells me how my site's been indexed.
Thanks in advance.
-
Hi Ryan, you've received some great responses here. Did they answer your question?
-
You're absolutely right, Paul. Thanks. Sometimes I forget that people's domains are more broad than the ones I work with. (I'm permitted to be lazy in this regard, but should not encourage such laziness.)
Onward!
-
Agree w/ what Jesse's saying here, but need a little tidy on his description of how to look at how Google sees the addresses differently. You'll need to Google www.whoopsee.com and then whoopsie.com (note the .com needs to be included both times). Otherwise you're doing a keyword search, not a domain name search.
In fact, the best way to do these is to do a search for site:www.whoopsie.com and then site:whoopsie.com. That will limit the search results to actual URLs from only your own site.
Paul
-
If you want to see the true effect of this "split" you can use Open Site Explorer to check the incoming links of each version of the URL. If there's a major difference, pick the version with the most incoming links as your primary (or canonical) version. Then redirect the secondary version to that URL. Like Jesse, I almost always find the www version is the better one to make primary.
There's no reason not to do this redirecting, and every reason to do it. You may find the rankings fluctuate a little for a day or 2 as the search engines update themselves. But if you don't do this, you essentially have your two sites competing against each other and splitting their value between them. Which means other sites will outrank you even though their "score" is lower, because your score has been split.
Google Webmaster Tools can also tell you this info very effectively, but to get it you're going to have to create a second site inside your GWT account. When you set up your existing GWT site, you used either the www.example.com or non-www version of your website. Whichever address you chose, that is the ONLY index data provided in that GWT site.
As further proof search engines consider them separate sites, the only way to check the other version of your URL is to actually create a whole new site (in the same GWT account) using the other URL version as the setup address.
When on your main dashboard, you'll see a red button in the top right corner for **Add a Site. **Use the URL that's different from the one you used the first time. Then set up and verify as normal. You can use the same verification method you used the first time -most often just using your Google Analytics account to verify is easiest, but if you uploaded a special file or are using the header snippet, those will work again too.
Once you've got the second site set up, you will be able to compare the indexing and incoming links reports to see the differences between the two versions as Google sees them.
Last benefit of setting up both sites - you can now use the GWT tools Configuration -> Settings to tell Google which version of the site is your Preferred Domain. (you can only do this properly if you have both site versions set up) Set the same version of the preferred domain in both versions of the site and you'll give Google a second indicator for which version of your domain is the primary.
Hope that makes sense?
Paul
-
well you can find out how it's been indexed by typing in your domain. For example, if your domain is www.whoopsee.com then google "whoopsee" and see what it returns.
Regardless, this doesn't matter. What you NEED to do is simply do a redirect. Choose one, www or non-www. I prefer www but others prefer other things. It is not going to hurt you if you perform this redirect right this second, no matter what Google has indexed. If you do NOT perform the redirect... THAT is what will hurt your site.
So.. don't delay and don't worry! You will find that things will improve. Keep this in mind - performing a 301 redirect will pass link juice. Meaning if you point domain.com - www.domain.com then all previous links pointing to domain.com will pass juice to the new permanent redirected www.domain.com
Does this make sense?
Long story short - Your site will not be worsened by this redirect. It will be benefited. Because right now, Google sees them as two different sites and they are competing against eachother and link juice is split between them. Join like Voltron and move forward!
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 Should I consolidate my "www" and "non-www" pages?
My page rank for www and non-www is the same. In one keyword instance, my www version performs SO much better. Wanting to consolidate to one or the other. My question is as to whether all these issues would ultimately resolve to my chosen consolidated domain (i.e. www or non-www) regardless of which one I choose. OR, would it be smart to choose the one where I am already ranking high for this significant keyword phrase? Thank you in advance for your help.
Technical SEO | | meditationbunny0 -
Redirects, 301's & 404's
I have tons of links that I have had added a redirect to after creating my companies new website. Is it bad to have all these 301s? How do I permanently redirect those links? Also, on Google Search Console it's telling me I have 1,000+ excluded links. Is this bad? Will it negatively affect me? Is this something to do with my sitemap? Any help would be greatly appreciated 🙂
Technical SEO | | sammecooper0 -
Redirect Process for Moving a Blog
Hi, I've read several articles about the correct process for moving a blog from a subdomain to the main root domain but am not quite 100% sure as to what to do in our scenario. They were hosting their blog on Hubspot which puts the blog on a sub-domain "blog.rootdomain.com". Realizing it isn't benefiting the main website for SEO they want to move it to the main website. I understand we have to redirect the Hubspot "blog." pages to the new "rootdomain.com/blog" pages but when transferred over (it's a WordPress site) it shows the dates. So, the URL is "rootdomain.com/blog/year/month/title". They want to remove the date. Does that mean the URL must be re-written then redirected so that there's no date showing? There's over 300 posts which will have to be redirected from the Hubspot URLs. Is there a way to avoid setting up the second redirect to remove the dates or make it easier so it isn't one page at a time?
Technical SEO | | Flock.Media0 -
Questions about the Sandbox and 301 Redirects
Does the sandbox still exist? What if you have a brand new URL and do a 301 redirect from another website because the name of the service business changed? Thanks for any insight and help.
Technical SEO | | SDSLaw0 -
301 redirects and seo..
I bought a domain and it has nice traffic. It only has about 5 main pages in php When i got the site i switched to html because php was overkill. I did the 301 and google deleted the php files and replaced with html version when i check site:domain.com It has been about 7 days. I DID NOT use 301 for each of the 5 pages to go php to html instead is used this code RewriteEngine On
Technical SEO | | samerk
RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule (.) http://www.mydomain.com/$1 [R=301,L]
RedirectMatch 301 (.).php$ http://www.mydomain.com$1.html So basically if you load php it will load the html version. dog.php > dog.html Is this OKAY? or should it be done differently.... worried! Thanks !0 -
Www vs non-www which is better?
Is it better to have all your pages point to the www version or non www version.
Technical SEO | | bronxpad0 -
Google Webmaster redirect vs 301 redirect
OK assuming a client's website has the right tracking script (hopefully analytics isn't effected by this issue), ... what happens if the htaccess file has a 301 redirect to the www-address, but within Google Webmaster Tools, the address chosen to crawl by Google is the non-www address? How will Google handle and which address takes precedence in this situation? _Cindy
Technical SEO | | CeCeBar0 -
301 Redirect?
Sometimes I want to redirect pages on my site. Like a search result: http://www.inthelighturns.com/memorials/catalogsearch/result/?q=hearts to a page designed for what they're searching for: http://www.inthelighturns.com/hearts.html There's no real worry about transferring page rank and this may not be a permanent redirect. Just a "I want this page to show this page for some time" kind of redirect. What's the best solution? Thanks Tyler
Technical SEO | | tylerfraser0