Rewrite the index page