index page rewrite