Removed the rewrite code

In favour of using req.url updates