added api to modrewrite