Crawlable AJAX with _escaped_fragment_ in htaccess Crawlable AJAX with _escaped_fragment_ in htaccess ajax ajax

Crawlable AJAX with _escaped_fragment_ in htaccess


Your forgot QSA directive (everyone missed the point =D )

RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$RewriteRule ^$ /webroot/crawler.php%1 [QSA,L]

By the way your $1 is well err... useless because it refers to nothing. So this should be:

RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$RewriteRule ^$ /webroot/crawler.php [QSA,L]

Tell me if this works.


If I'm not mistaken.

RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$RewriteRule ^$ /webroot/crawler.php?%1 [L]


Maybe is obvious for you, but in the documentation talk about escaped characters:Set up your server to handle requests for URLs that contain

The crawler escapes certain characters in the fragment during the transformation. To retrieve the original fragment, make sure to unescape all %XX characters in the fragment. More specifically, %26 should become &, %20 should become a space, %23 should become #, and %25 should become %, and so on.