youngros Posted February 11, 2009 Report Share Posted February 11, 2009 I'll start with the reason, just because I like the look rather than trying to hide which server side language I am using. I have seen one or two sites that do this and have looked around the internet on ways to do it, other than creating a folder for every file. With a site that is only 25 or so pages that wouldn't be a big problem. It boils down to using either .htaccess and mod_rewrite, which from what I see just directs one url to another or to this code that I found: ForceType application/x-httpd-php All files are saved without the .php extension (DW loves you doing this!) It works in localhost and works with IE7, but not with Firefox. In Firefox a window opens to say you have chose to open "file2 which is a: application/x-httpd-php What shoud Firefox do with this file? Any thoughts on this would be appreciated. Quote Link to comment Share on other sites More sharing options...
shelfimage Posted February 12, 2009 Report Share Posted February 12, 2009 If you want to simply remove the .php extension from URLs, use this in htaccess: RewriteEngine On RewriteRule ^(.*)\$ $1.php 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.
Note: Your post will require moderator approval before it will be visible.