Rewrite relative urls on 404 page