Updated rewrite rules to rewrite AJAX as well