Fixed url rewrite