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? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
PugJr Posted April 7, 2009 Author Share Posted April 7, 2009 Thanks! Just what I need. Quote Link to comment 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.