Fix url rewrite rule