change index extension to php