Fixed URL rewriting for URIs starting with a double //