matfish Posted February 24, 2010 Share Posted February 24, 2010 Hi there, This is probably either something which is not possible, or if it is, then is probably something really simple to do?! I have a .php file of which I want to run as a .php file, but I want to change the file extension to something else (.it) So - run.php would become run.it (running normally in php) I have a dedicated server so I can change things on the server - but I'm a server newbie so would need instructions? Hope that makes sense? Many thanks Link to comment https://forums.phpfreaks.com/topic/193228-file-extensions-on-server/ Share on other sites More sharing options...
wildteen88 Posted February 24, 2010 Share Posted February 24, 2010 If you have access to Apaches httpd.conf you can use the following directive AddType application/x-httpd-php .php .it Files ending in .it will now be parsed by PHP. Link to comment https://forums.phpfreaks.com/topic/193228-file-extensions-on-server/#findComment-1017579 Share on other sites More sharing options...
matfish Posted February 25, 2010 Author Share Posted February 25, 2010 thats great, thank you! Link to comment https://forums.phpfreaks.com/topic/193228-file-extensions-on-server/#findComment-1018039 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.