Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm confused about canonical issue. I've setup in .htaccess to redirect the urls without www to www. one's.
My site is http://www.indiacustomercare.com .
Now the url's in this link-http://www.indiacustomercare.com/sitemap are all without www. Is this going to affect anything?
In the web will both the url's(http://www.indiacustomercare.com & http://indiacustomercare.com) be considered same or different?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

If you'd properly set redirect 301 from htaccess robots will know your preferred url starts with www and they will index it using www because redirect 301 indicates no-www is removed permanently. Additionaly You can tell Googlebot www is your preferred url, login into Google Webmaster Tools go to Site configuration -> settings and select Display URLs as www.yourdomain.com

If you are going to use absolute URLs in your internal links it will be better to be consistent with your preferred domain. If you don't want to bother about inserting http://www.yourdomain.com/ in your links' href then don't include protocol and domain there, just set your links as href="/folder/page.ext". In this way the links will be appended to your domain and bots will see them as http://www.yourdomain.com/folder/page.ext

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.