remove old index
new index and permalink for post