If app is configured to run with a prefix and the request doesn't start
with one, just rewrite the url, to have the prefix prepended.