update files to support urlrewrite