Browse Source

404 step 1

isundil 6 years ago
parent
commit
f670c09872
2 changed files with 3 additions and 0 deletions
  1. 2 0
      .htaccess
  2. 1 0
      404.php

+ 2 - 0
.htaccess

@@ -1,5 +1,7 @@
+ErrorDocument 404 /404.php
 RewriteEngine on
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME}.php -f
 RewriteRule ^(.*)$ $1.php

+ 1 - 0
404.php

@@ -0,0 +1 @@
+404 Page not found!