Hy! i'm using laravel 5.8 and when i put the wrong address in my url it give error
Trying to get property of non-object (View: C:\xampp\htdocs\cms\resources\views\post.blade.php)
url like
http://127.0.0.1:8000/lkfajds;
this is wrong url i put.
why this not back me to 404 page how can i do this
Want: i want to it redirect me to 404 page
Here htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire