Anthony Volodkin is fascinated

I look for passion, integrity and curiosity.

I wake up in the morning to get people excited about new music.

I do this with a team and a website sometimes called "a juggernaut of global influence" [Billboard], and sometimes the Hype Machine. If you are human, you can email me or follow me on Twitter.

What do you look for? Why do you wake up?

October 2, 2010 at 12:44pm

Home

Enabling Google’s AJAX Crawling Convention on NGINX

Google has a spec for making AJAX applications crawlable via the “#!” notation in the URLs.  One way to prepare your app for this is to perform the required conversions on the web server rewrite level.  

To do that in nginx, put this in the server {} context of your config:

        if ($args ~ “_escaped_fragment_=(.+)”) {

                set $real_url $1;

                rewrite ^ $real_url;

        }

Rewriting to just $1 does not work, so this temporary variable is needed.

Notes

  1. ryanb reblogged this from fascinated
  2. fascinated posted this