Lockdown the rewrite regex.

Ensure that only validly-formatted info hashes are handled. Improper urls are left with nginx's own 404 response.