Created
April 26, 2017 10:03
-
-
Save Jamiewarb/63d1cba8d025e807c50f942268350e0b to your computer and use it in GitHub Desktop.
Remove file extension with .htaccess
This file contains 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 | |
RewriteBase / | |
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