Fix redirect loop when accessing rewritten paths.

Testing Done:
./gradlew build -Pq

Also started up multiple schedulers in vagrant image and confirmed
that I'm properly redirected when accessing the non-leading scheduler.

Bugs closed: AURORA-841

Reviewed at https://reviews.apache.org/r/26790/