Hello fellow developers!
We are almost finished with developing first phase of our ajax web app. In our app we are using hash fragments like:
http://ourdomain.com/#!list=last_ads&order=date
I understand google will fetch this url and make a request to the server in this form:
http://ourdomain.com/?_escaped_fragment_=list=last_ads?order=date&direction=desc
everything is perfect, except...
I would like to route this kind of request to another script
like so:
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$
RewriteRule ^$ /webroot/crawler.php$1 [L]
The problem is, that when I try to print_r($_REQUEST) in crawler.php I get only:
Array
(
[_escaped_fragment_] => list=last_ads?order=date
[direction] => desc
)
what I'd like to get is
Array
(
[list] => last_ads
[order] => date
[directions] => des
)
I know I could use php to further break the first argument, but I don't want to ;)
please advise
==================================================== EDIT... some corrections in text and logic