Search code examples
phpajaxhashseodynamic-url

What is best for SEO when using Ajax, Hash URL or Direct URL or Both?


I'm making a website based fully on Ajax, but i'm still doubting about my SEO.

In my "a" tags href I put a Direct link to the content, but i don't redirect the user to it, instead i get the content by Ajax, then I change the Address bar with "window.location.hash".

If i send to Google my sitemap with the two links (the hash link and the direct link) is that going to be a duplicate content and hurt my SEO or not.

If you have any better way to do this (instead of my way) please feel free to tell me about it.

Thanks Guys


Solution

  • Google has a useful guide here: