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
-
Redirect non slash to slash
Hello SEO gurus We have an issue here ( www.xyz.com.au) is having 200 responses www.xyz.com.au and www.xyz.com.au/ ( when i ran the crawl test i found this ) We have been advised to do a 301 from non slash to slash ( as our other pages are showing up with slash ) for the consistency we decided to go with this but our devs just couldnt do it. Error is - redirect loop and this site is a wordpress one Can anyone help us with this issue? Help is much appreciated.
Technical SEO | | Pack0 -
301 redirect to WWW on a 2 year old website with good SERPs and organic traffic?
Hi everyone, Recently someone pointed out that my website can be accessed in both ways i.e. by typing www.example.com or example.com. He further added that Google might identify this as duplicate content and penalize my website. So now I'm thinking about 301 redirection from non WWW to WWW using htaccess method. But my website is 2 year old now and I'm getting some decent traffic from Google. Will this redirection have an adverse effect on my rankings? Is there any other way to resolve this issue? I don’t want to lose my current rankings or organic traffic. Any help would be very much appreciated. P.S. Currently Google index my website pages with WWW.
Technical SEO | | nicksharma040 -
Hreflang on non-canonical pages
Hi! I've been trying to figure out what is the best way to solve this dilemma with duplicate content and multiple languages across domains. 1 product info page 2 same product but GREEN
Technical SEO | | LarsEriksson
3 same product but RED
4 same product but YELLOW **Question: ** Since pages 2,3,4 just varies slightly I use the canonical tag to indicate they are duplicates of page 1. Now I also want to indicate there are other language versions with the_ rel="alternate" hreflang="x" _element. Should I place the _rel="alternate" hreflang="x" _on the canonical page only pointing to the canonical page with "x" language. Should I place the _rel="alternate" hreflang="x" _on all pages pointing to the canonical page with the "x" language? Should I place the _rel="alternate" hreflang="x" _on all pages and then point it to the translated page (even if it is not a canonical page) ? /Lars0 -
CNAME redirect for Press Releases
Our company is moving our press release section over to Business Wire. Business Wire will be hosting the press releases on their servers http//ourcompany.newshq.businesswire.com, but we want it to display as if these are hosted on our site www.ourcompany/press-releases/. This is where our press releases are hosted now. They are recommending using a CNAME redirect to essentially mask their URL and display ours. We don't want to lose out on the search value that our press release area has built up over time. Will the CNAME redirect cause any SEO problems?
Technical SEO | | ryanwats0 -
Double 301 redirect
Hi together, due to some technical reasons I have redirect (301) an existing link two times. Example: www.mydomain.com/root/site.html > 301 > www.mydomain.com/site.html > 301 www.mydomain.com/site_new.html Is there anybody how has got some experience like doing a double redirect? What about link juice? Best regards Steffen
Technical SEO | | steffen_0 -
How do 301 redirects affect rankings?
Scenario: example.com/red-shoes gets 301 redirected to example.com/brown-boots because we have stopped selling red shoes and now only sell brown boots (which is a fairly new page with no authority). the red-shoes page ranked well for "red shoes" and "footwear". Will Google still index and show the red-shoes url in the SERPs? Will the "red shoes" and "footwear" keywords still rank well? Or does the redirected/new boots page need to properly support these keywords? The boots page has inherited the juice from the shoes page, but how does it help the boots page rank well? Only for keywords that both pages targeted, like a general "footwear" type keyword? Thanks in advance!
Technical SEO | | akim260 -
How do I redirect non-www to www in IIS?
There is a lot of talk about this all over this site (and other's), but just about every solution mentions using the .htaccess file, which is only a solution for Apache. My sites are in a shared windows environment, so that won't work for me. I have access to the IIS manager for the server, and have several page-level redirects in place. My issue is that I cannot find a clear and easy way to re-direct my root (domain.com) domain, to my preferred specific domain (www.domain.com). I found a few articles online relating to a URL re-write module for IIS, but am not sure if I will be able to install that on a shared web server. Is there another way to accomplish my goal of not having 2 indexable versions of my site? I have rel-canonical tags on every page, but would prefer a more trustworthy and established solution. Thanks for any help you can offer. -Dave
Technical SEO | | dschapira0 -
Https redirect
Hi there, a client of mine is asking me if Google would penalize to redirect from all the http urls to https (they want to change the security protocol). I assume it is going to work as a classic 301, right? so they might lose some authority in they way, but I am not 100% sure. Can anyone confirm this? does anyone has a similar experience? thanks a lot!
Technical SEO | | elisainteractive0