We are getting a site ready for a client that is using a full AJAX approach to their site, so pretty much every link is using a hash bash.

I'm currently trying to get a crawling system going for when the site is called on using an _escaped_fragment_, and I want to either rewrite the url or redirect it properly. I'm trying to get it set up in the web.config, but I'm not sure what would be the best method of doing this.

I'm currently trying to do this:
        <rule name="Rewrite escaped fragment" stopProcessing="true">
          <match url="^/\?_escaped_fragment_=([_0-9a-zA-Z-/]+)" />
          <action type="Rewrite" url="/{R:1}" />
So basically http://www.domain.com/?_escaped_frag...th/to/document will turn into http://www.domain.com/path/to/document

Any thoughts or suggestions? Google hasn't been much help so far.