Browse Source

404 step 1

isundil 6 năm trước cách đây
mục cha
commit
f670c09872
2 tập tin đã thay đổi với 3 bổ sung0 xóa
  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!