fix urlrewrite