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

后端 未结 2 403
夕颜
夕颜 2021-01-27 11:54

I am building a fully jquery powered website, so i am loading all pages dynamically using ajax to achieve fancy transitions between pages and maximize user experience. Here is

相关标签:
2条回答
  • 2021-01-27 12:34

    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.

    0 讨论(0)
  • 2021-01-27 12:42

    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)
    0 讨论(0)
提交回复
热议问题