Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a domain, say www.example.com which is redirected to a website built in Google Sites. I don't want different search engines treat example.com as a different site from www.example.com. How do I make a permanent link between the two? My domain is under GoDaddy.


In Go Daddy, I have forwarding option set to Google site link.

Under CNAME, I have Google provided alias and directions.

share|improve this question

migrated from superuser.com Jun 10 '11 at 23:56

This question came from our site for computer enthusiasts and power users.

Can you provide more information or at least a clearer explanation of what your current setup is (method of redirect, A/CNAME records, etc)? – MaQleod Jun 10 '11 at 23:24
Just edited. Thanks for your time. – Milli Saboski Jun 10 '11 at 23:44

1) Do a 301 redirect from one to the other. Here is the code you can place in an .htaccess file in your webroot (change your_domain.com to be your actual domain):

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]

2) In Google Webmaster Tools you can set your preferred domain so Google knows which one you prefer.

share|improve this answer

You can also specify canonical URLs for pages on your site by putting an HTML <link> element with proper information in the page <head>.

For example:

<link rel="canonical" href="http://www.example.com/product.php?item=swedish-fish" />

See "Specify Your Canonical" at the Google Webmaster blog.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.