Pointing the crawler to an HTML snapshot

I am trying to make my AJAX site accessible:

Here is this website.

  • I created htmlsnapshot.php that generates the page (this file must be passed to the hash fragment in order to be able to create the right content).
  • I do not know how to make the scanner download this file when ordinary users download a normal file.
  • I don’t quite understand what the scanner does with the hash fragment (and this is probably part of my problem.)

Does anyone have any tips?

+3
source share
1 answer

The scanner will be distracted. You just need to set up a PHP script to handle the GET parameters that Google will send to your site (instead of relying on AJAX).

, Google yourdomain.com/#!something / JavaScript AJAX something, Google ( , - ) , #! URL- ?_escaped_fragment_=something.

( PHP script) , $_GET['_escaped_fragment_'], , something.

.

+2

All Articles