Fix rewrite config to add slashes