Last active
December 18, 2015 15:49
-
-
Save dylanhthomas/5807003 to your computer and use it in GitHub Desktop.
htaccess - remove file extensions from URL.
Replace .php with whatever extension you want to remove:
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