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
-
Subdomain redirect
Hey guys, I was thinking about creating subdomains for one of my websites. I want to divide my website in different subdomains (blog.[site].com / directory.[site].com / etc.) but I'm afraid that this will negatively impact my rankings. My blog for example has a lot of supporting content for my products and services that are primarily hosted on the homepage. Have you guys ever created subdomains at a later stage of your website's existence? What kind of impact did you notice? Would you recommend it? Thanks a million!
Technical SEO | | Nizar.1 -
Best Place to Redirect 301 to?
Hey Everyone! I have an old site with hundreds of blog posts that are very spammy (duplicate content, keyword stuffed, and just plain bad content). I am going to redirect them and delete them from WordPress but I'm wondering where is the best place to redirect them to? Home page, other posts, other pages...? Any thoughts would be appreciated! Thanks!
Technical SEO | | adamxj21 -
After I 301 redirect duplicate pages to my rel=canonical page, do I need to add any tags or code to the non canonical pages?
I have many duplicate pages. Some pages have 2-3 duplicates. Most of which have Uppercase and Lowercase paths (generated by Microsoft IIS). Does this implementation of 301 and rel=canonical suffice? Or is there more I could do to optimize the passing of duplicate page link juice to the canonical. THANK YOU!
Technical SEO | | PFTools0 -
Redirects in site map
I have a site with the ace/sef ( creates friendly URLS) in a large data base site. It creates a site map dynamically. Yet I realize one issue which I am trying to think through. I recently changed my urls to include an ID number example: homepage/houses/1134-big-blue-house The prior url was: homepage/houses/big-blue-house the original url above redirects to the new one with the ID like I want. However the site map has both URLS in it which go to same page I am not sure but it seems rather stupid to have the new URL and OLD redirected URL in the site map. Yet beside stupid I am wondering if this is duplicate content and will cause a penalty from the google bot. What is your opinion ?
Technical SEO | | aimiyo0 -
301 Redirect question www to root.com
I have a site that has been up for a few weeks now and is currently in a www format and i am considering changing it to just mydomain.com I also have quite a few directory listings (including google places/bing) for this site w/ the www. url. If i do this, change it in my google analytics, and update my wordpress internal page + htaccess file. Will i lose any of the link juice i had from my www pages? Would this be something that would be advised since i've registered for many sites, or is there a potential that this could end up hurting me? Thanks,
Technical SEO | | tgr0ss0 -
Rel=Canonical, WWW vs non WWW and SEO
Okay so I'm a bit of a loss here. For what ever reason just about every single Wordpress site I has will turn www.mysite.com into mysite.com in the browser bar. I assume this is the rel=canonical tag at work, there are no 301s on my site. When I use the Open Site Explorer and type in www.mysite.com it shows a domain authority of around 40 and a few hundred backlinks... and then I get the message. Oh Hey! It looks like that URL redirects to XXXXXX. Would you like to see data for <a class="clickable redirects">that URL instead</a>? So if I click to see this data instead I have less than half of that domain authority and about 2 backlinks. *** Does this make a difference SEO wise? Should my non WWW be redirecting to my WWW instead because that's where the domain authority and backlinks are? Why am I getting two different domain authority and backlink counts if they are essentially the same? Or am I wrong and all that link juice and authority passes just the same?
Technical SEO | | twilightofidols0 -
Automatic redirect to external urls
Hi all, I'm developing a dynamic qr code service.. The service works in the following way: You create an account with an associated QR CODE pointing to a url like:
Technical SEO | | raulo79
- http://domain.me/username The user can change the target of this url.. he can:
- point to an external url ( his website for example)
- point to a vCard download page
- a mobile ready webpage ( no redirection in this case)... Visiting http://domain.me/username my company logo is displayed and we redirect the visitor with a: header("Refresh: 5;URL=http://userdomain.tld"); Google is indexing many user's URLs, this is good for those users pointing to the mobile ready webpage, in this case there is no redirection, but Google is indexing many urls that redirect to an external url and I don't know how to avoid this.. I can't do an header('Location: http://www.example.com/'); because I need to display our logo after redirection.. how can I do google friendly? Sorry for my english, I hope you can undestand the problem. Best regards.
Mauro.0 -
Parked Domain blog directory not redirecting
My newly parked domain name, (our main website had to switch primary domains) is not redirecting properly and is causing our blog to be duplicate content. My 301 redirects work for everything else, but our parked domain /blog directory is not redirecting. I can type in both urls and then the blog appears on both sites. Not good. If I delete my blog .htaccess file, then it redirects fine. However, then our blog links are broken. So it has to do something with our .htaccess files. I do have a .htaccess file for our website, saying redirect everything to correct location, so i think this is interfering, but I cannot pinpoint it. this is the .htaccess file for the blog. BEGIN WordPress <ifmodule mod_rewrite.c="">RewriteEngine On
Technical SEO | | hfranz
RewriteBase /blog/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]</ifmodule> END WordPress main sites .htaccess (i am trying to pinpoint the issue here) Options +Includes
AddType text/html .htm .html
AddHandler server-parsed .htm .html
Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^(www.)?parkeddomain.com [NC,OR] RewriteCond %{HTTP_HOST} ^newdomain.com [NC] RewriteRule (.*) http://www.newdomain/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^?]*)? RewriteRule (.*) /$1? [R=301,L] RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ http://www.newdomain.com/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^.*/index.htm RewriteRule ^(.*)index.htm$ http://www.newdomain/$1 [R=301,L] RedirectMatch 301 /index.php/(.*) /$1 Is there something obvious here, that does not look right?0