With or Without WWWs

If your site is accessible with and without the www prefix, Google will see this as duplicate content.
The problem is that you have no control over which version Google will decide to index. If, for example, you site winds up getting indexed without the www but all your links point to your domain with the www, you links will effectively be useless.

To combat the issue between www and no www,you simply need to put a rewrite rule in your .htaccess file. Drupal has already place the appropriate code in this file so all you need to do is uncomment the following statements in your default .htaccess file.

# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

Don't forget to change the example name to your own website. It's a good idea to verify that the rewrite rule works by typing in your URL without the www prefix and you should see it redirect.

Posted In

Usability

Redirecting no-www to www (or vice-versa) is also important for usability, since many people (including me) omit www for typing speed. The no www campaign encourages people to not use the www prefix at all, which is a good choice, though can cause issues with lack of control over cookies. [spam starts] There are many offshore banks and offshore banking jurisdictions, here is a good article about offshore banks.[spam ends]

jterp | Mon, 02/22/2010 - 23:35

multisite set up

How does this work on a multi-site set up?

jinglesnbells | Sun, 01/31/2010 - 09:22

think I figured it out

you just copy that text and change the example.com to your other domains

thanks for the information!

jinglesnbells | Sun, 01/31/2010 - 09:26

Why do some websites are

Why do some websites are accessible without adding WWW prefix and some aren't? for getting more detail may ccna training, oracle training and mcp will prove helpful for you.

james7 | Thu, 08/13/2009 - 06:55
jamessmith12 | Fri, 02/19/2010 - 07:02