According to Google's own spec
<https://developers.google.com/webmasters/ajax-crawling/docs/specification>,
it takes special routing rules for dynamic websites to be crawled.
Basically, if you put <meta name="fragment" content="!"> somewhere in your
<head> then you can split your traffic:
Google bots will request stuff like:
- domain[:port]/path?_escaped_fragment_=hashfragment
- domain[:port]/path?queryparams&_escaped_fragment_=hashfragment
- domain[:port]/path?_escaped_fragment_=
- domain[:port]/path?queryparams&_escaped_fragment_=
While normal browsers will request stuff like:
- domain[:port]/path#!hashfragment
- domain[:port]/path?queryparams#!hashfragment
- domain[:port]/path
- domain[:port]/path?queryparams
I've got the normal users covered but how can I match "_escaped_fragment_="
in my routes to send those request to my static snapshots ?
I've tried
('/s/$anything?_escaped_fragment_=', '/app/static/snapshots/$anything')
But it doesn't work at all !
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.