christianmatthew Posted November 1, 2006 Share Posted November 1, 2006 This is kind of a tricky one...How do I change apache to accept a different file extension for php.Example:I want a file named index.boo or something, but apache doesn't understand it as php and shows the code like a text file.How do I make it register different extensions, as well as keep .php as one of those extensions. (so I can have both index.php and index.boo)I've seen this done before, just can't find anywhere on how to do it. Link to comment https://forums.phpfreaks.com/topic/25849-changing-file-extension/ Share on other sites More sharing options...
Daniel0 Posted November 1, 2006 Share Posted November 1, 2006 Add this to your httpd.conf file: [code]AddType application/x-httpd-php .boo[/code] to get boo files parsed as PHP files. Link to comment https://forums.phpfreaks.com/topic/25849-changing-file-extension/#findComment-118028 Share on other sites More sharing options...
christianmatthew Posted November 1, 2006 Author Share Posted November 1, 2006 Thank you very much! Link to comment https://forums.phpfreaks.com/topic/25849-changing-file-extension/#findComment-118035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.