fix .php extension issues