Replacing redirect with different location.

Nginx redirects are to absolute URLs, and we don't want to mess with those if we don't have to.