rewriting file extensions

This commit is contained in:
Wyatt J. Miller 2019-12-08 16:16:28 -05:00
parent 2c357d2c54
commit ef560d39c9

View File

@ -1 +1,5 @@
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
ErrorDocument 404 /404.php ErrorDocument 404 /404.php