youngros Posted February 11, 2009 Report 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.
shelfimage Posted February 12, 2009 Report Posted February 12, 2009 If you want to simply remove the .php extension from URLs, use this in htaccess: RewriteEngine On RewriteRule ^(.*)\$ $1.php
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now