Not sure what you mean Jonathan, I can already detect the Google bot by
using ?_escaped_fragment= which is also Google's preferred way over user
agent sniffing. I just need to adapt the rewrite rule to serve index.html to
requests for /.
Thanks for the reply, though!
Posted at Nginx Forum:
http:
I have a very Javascript heavy website which is being served by nginx. It
all works great, except Google is having trouble indexing me. I've made
pre-rendered snapshots of all my pages using Phantomjs and these are stored
in /snapshots (relative to my website's root).
I've been using this rewrite