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
-
301 redirect syntax for htaccess
I'm working on some htaccess redirects for a few stray pages and have come across a few different varieties of 301s that are confusing me a bit....Most sources suggest: Redirect 301 /pageA.html http://www.site.com/pageB.html or using some combination of: RewriteRule + RewriteCond + RegEx I've also found examples of: RedirectPermanent /pageA.html http://www.site.com/pageB.html I'm confused because our current htaccess file has quite a few (working) redirects that look like this: Redirect permanent /pageA.html http://www.site.com/pageB.html This syntax seems to work, but I'm yet to find another Redirect permanent in the wild, only examples of Redirect 301 or RedirectPermanent Is there any difference between these? Would I benefit at all from replacing Redirect permanent with Redirect 301?
Technical SEO | | SamKlep1 -
Redirecting 301 or 302?
Hi, I think the part of this question has been already discussed, but not exactly the same, I think. My site requires authentication for member page. When a user try to go to member area, we redirect to 3rd party to do the authentication. 1. user clicks a link to www.mysite.com/member/contents.html
Technical SEO | | HypermediaSystems
2. www.myauthenticate.com/login?h=somehashuniquehash454859428778545 (enters id/pass)
3. login success => redirect back to www.mysite.com/member/contents.html We are doing it 302, temporary redirect. But moz crawler error seems to suggest we should do it 301.
So my question is:
A. Should we do it 301???
B. If we do 301, what happens to myauthenticate.com? since it has hashtag, I am afraid it could create a lot of duplicate contents on myauthenticate.com side... Thank you so much for your help in advance...0 -
301 Redirect
Hello Moz Community, I have a question regarding 301 redirecting a new domain that contains keywords relevant to my website. However, I do NOT want to change my current domain. My main question is, by just redirecting this new domain to my current website, will those keywords in the new domain help with ranking in anyway? Thanks in advance for any help!
Technical SEO | | WyzeOwl0 -
One more redirect question
If there are two URLs like below: example.com/toys/batman-toys
Technical SEO | | IceIcebaby
example.com/birthday/batman-toys Both have the exact same everything, except URL key. The first example ranks for all KWs and search terms in the SEs. Does having the second page hurt my ranking potential for the first page? Should I redirect the 2nd page to the first or just leave it? As always, thanks for your help.0 -
302 redirects help
Hello, I have a Magento ecommerce store and my latest seomoz crawl report shows over 10,000 302 redirects. An example is this below https://jsshirts.com.au/wishlist/index/add/product/160/ which is being redirected to http://jsshirts.com.au/enable-cookies Can anyone please help me with a solution to help with this problem. Many thanks
Technical SEO | | mullsey0 -
Domain redirect seo
Hello, my domain www.pacomarca.com and when i start the new campaing i get this pronblem: We have detected that the domain www.pacomarca.com and the domain pacomarca.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. my domain is in networksolutions.com. how can i resolve it? many thanks Gonzalo
Technical SEO | | Kuna0 -
302 or 301 redirect to https ?
I am redirecting whole site to https. Is there a difference between 302 or 301 redirect for seo? Site never been indexed. Planning to do that with .htaccess command RewriteCond %{HTTPS} !=on
Technical SEO | | Kotkov
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] There are plenty of ways http://www.askapache.com/htaccess/ssl-example-usage-in-htaccess.html Which way would be the best? Thanks is advance0 -
Non-www home page indexed, but www for rest of site
Hi there, grateful for any ideas on why this is happening: http://www.google.co.uk/search?q=site:www.vitispr.com vs http://www.google.co.uk/search?q=site:vitispr.com Google seems to be indexing and caching vitispr.com for our home page but the www. versions for everything else. As you can see the second query finds the home page. Any ideas why that might be? Other info that might be relevant: non-www etc. are all 301'd to www versions. moved domains/urls etc. around in March of this year and for a week or we were redirecting to the non-www version webmaster tools says 'www' preferred Thanks!
Technical SEO | | JaspalX0