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. Quote 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. Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/25849-changing-file-extension/#findComment-118035 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.