added the rewrite rule