Updated rewrite rule