Canonical Issue

Hi,

I don’t know why google is indexing my site without www even though I’ve added this canonical code in the page "[I]<link rel=“canonical” href=“http://www.mysite.com/[/I]

Should I’ve to wait for google to crawl my pages so that he can see the code OR Should I do 301 redirect OR Is there any code i’ve to add?

PLease help me.

I think you should change your code and use the different coding for canonical problem

Thanks Stevie,

Well, I’ve added this code 2 days before only. Actually google didn’t crawled my pages from last 3 weeks. So, i thought when it will crawled I’ll be relaxed.

How is this helpful? Please explain what you mean.

If that’s what links to it are using (internal and external), that is what Google will start with. It will use the canonical URL given as a ‘suggestion’, and should in time correct its listings. As long as the two URLs end up at the same page, you’ve used a consistent format throughout your site and you’ve got canonicals, you should be OK - but it won’t hurt to set up a URL-rewrite to make sure the www is there.