How to index dynamic pages to google using html5 pushstate method?

主宰稳场 提交于 2019-12-02 11:50:24

pushState lets you change the local part of the URI when you update the page contents with Ajax.

For every URI you create that way, allow the server to build the same page without any dependency on JavaScript.

This will:

  • Give better performance when visitors enter the site by following a deep link
  • Allow the site to work without JavaScript (including for search engine robots)

Complementing the @Quentin's answer, you need to identify in the PHP if the content is being loaded via ajax or not. If it isn't, you have to display the full content of the page being requested, including header, footer and the content of the page.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!