fixed url rewrite replace issue