Created
January 15, 2014 07:17
-
-
Save nasal/8432148 to your computer and use it in GitHub Desktop.
Apache: remove .php extension from url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME}\.php -f | |
RewriteRule ^(.*)$ $1.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment