Moved RewriteEngine placement