isundil 6 lat temu
rodzic
commit
f670c09872
2 zmienionych plików z 3 dodań i 0 usunięć
  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!