PugJr Posted April 7, 2009 Share Posted April 7, 2009 Is there any reasonable way to change the way the server recognizes a php file besides the endings of like .php, .phtml, etc. Like change it from .php to .pug perhaps? Link to comment https://forums.phpfreaks.com/topic/152929-solved-is-it-possible-to-change-php-to-somethingelse/ Share on other sites More sharing options...
JREAM Posted April 7, 2009 Share Posted April 7, 2009 you would use apache mod_rewrite set my .htaccess ie: Options +FollowSymlinks RewriteEngine on RewriteRule (.*)\.php $1.dog Link to comment https://forums.phpfreaks.com/topic/152929-solved-is-it-possible-to-change-php-to-somethingelse/#findComment-803172 Share on other sites More sharing options...
PugJr Posted April 7, 2009 Author Share Posted April 7, 2009 Um, well I'm still sorta new to all this and like could you give me an example of like .php to .pug or something? I really don't understand what you gave me does in a .htaccses. Thank you. EDIT: Or a guide that helps with the file? I googled it for a guide but I don't seem to find a guide that makes it simple. Link to comment https://forums.phpfreaks.com/topic/152929-solved-is-it-possible-to-change-php-to-somethingelse/#findComment-803179 Share on other sites More sharing options...
Philip Posted April 7, 2009 Share Posted April 7, 2009 Mod rewrite cheat sheet Intro to htaccess (part 2 has the rewrite rules) Link to comment https://forums.phpfreaks.com/topic/152929-solved-is-it-possible-to-change-php-to-somethingelse/#findComment-803184 Share on other sites More sharing options...
PugJr Posted April 7, 2009 Author Share Posted April 7, 2009 Thanks! Just what I need. Link to comment https://forums.phpfreaks.com/topic/152929-solved-is-it-possible-to-change-php-to-somethingelse/#findComment-803186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.