Rewrite index page