enable pathrewrite