I have created a 404.php page and it works fine
Link: https://taigame.online/404.php
But when I enter the wrong link like https://taigame.online/404ddas, it doesn't show the 404 page. Can anyone tell me how to fix it?
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
ErrorDocument 404 /404.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Aucun commentaire:
Enregistrer un commentaire