: Using Ajax #! for Google but site is not being crawled any more Our pages used to be formulated using the ? string but since we changed to AJAX loading we now use #!, for example: Old
Our pages used to be formulated using the ? string but since we changed to AJAX loading we now use #!, for example:
Old link: /post.php?idPost=5326
New link: /post.php#!idPost=5326
The snapshot you can get it by adding _escaped_fragment_= after the ?.
All have the same content, what has happened to the site since we changed the linking system?
More posts by @Courtney195
3 Comments
Sorted by latest first Latest Oldest Best
Even though hashbangs #! are still supported, Google suggests steering away from using them and just use the History API to change the URL. Libraries like History.js make it easy to do so.
This basically removes your problem altogether, there's no need to set up urls with _escaped_fragment_ when using the History API
According do Google's Guide the url /post.php#!idPost=5326 would get crawled at /post.php?_escaped_fragment_=idPost=5326.
Your server would have to respond to that URL the same way that it used to respond to /post.php?idPost=5326.
You should then use a 301 redirect from /post.php?idPost=5326 to /post.php#!idPost=5326.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.