remove .php prefixes related to master server