Search

I'm trying to implement Google's guide for "Making AJAX Applications Crawlable". They say to use #! instead of # in the ajax urls and Google will change this #! to ?escapedfragment_= to get the content that the ajax page would display using javascript from the hash.

ie: Google will change the http://www.example.com#!anything to http://www.example.com?_escaped_fragment_=anything

The question is: how can i redirect the page http://www.example.com/anyString/?_escaped_fragment_=myAjaxPage/mySubPage to http://www.example.com/myajaxpage/mysubpage

Does this redirection need to be done in php?

Ps: "The crawler escapes certain characters in the fragment during the transformation". Then i think / will become %2f

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details