bux23
2/10/2017 - 11:03 AM

Remove php extension from url htaccess

Remove php extension from url htaccess

## REMOVE EXTENSIONS ##
Options +FollowSymLinks -MultiViews

RewriteEngine On
RewriteBase /

RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L,NC]

RewriteCond %{REQUEST_FILENAME}.php -f [NC]
RewriteRule ^ %{REQUEST_URI}.php [L]
## REMOVE EXTENSIONS ##