Created
December 3, 2017 20:33
-
-
Save tieutantan/3da977cc4bdfb792b576bde3309622eb to your computer and use it in GitHub Desktop.
Htaccess remove extension ".php"
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 | |
RewriteRule ^(.+)\.php$ /$1 [R,L] | |
RewriteCond %{REQUEST_FILENAME}.php -f | |
RewriteRule ^(.*?)/?$ /$1.php [NC,END] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment