fixing html extensions to php