Mobile app version of vmapp.org
Login or Join
Courtney195

: 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

@Courtney195

Posted in: #Ajax #Google #Indexing #Seo #WebCrawlers

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?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

3 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

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

10% popularity Vote Up Vote Down


 

@Eichhorn148

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme