开发者

Should I use # or #!

开发者 https://www.devze.com 2023-02-18 13:23 出处:网络
I am doing some ajax page with jQuery, can you tell me which are the differences (especially for SEO point of view) between pages like:

I am doing some ajax page with jQuery, can you tell me which are the differences (especially for SEO point of view) between pages like:

  • page.html#option1
  • page.html#!option1

Edit: mh maybe the second options is google-fri开发者_如何学Pythonendly

Thanks


You should use #! if you want your site crawlable by Google. More information is found on their Getting Started guide. So yes, the second version is more SEO-friendly. Another post worth reading is Googles propsal for making ajax pages crawlable.

However, for a users point of view, there's no difference.

Just a tip, sammy.js is a great library for working with this. It allows you to define routes using hash fragments.

0

精彩评论

暂无评论...
验证码 换一张
取 消