Change the rewrite flag based on nginx best practices

- See -> http://wiki.nginx.org/IfIsEvil