PathRewrite not working after build