fixed url rewrite