Categories
Uncategorized

.htaccess hide “.php” extension and custom 404 page

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php


RewriteEngine on
ErrorDocument 404 /spel/template/404