Last active
January 27, 2017 11:28
-
-
Save pawiromitchel/5357cf39cce2ed5ece69beab3dece921 to your computer and use it in GitHub Desktop.
htaccess - To remove the .php in the url
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 | |
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