Fix urlrewrite