Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ahmedariqi's avatar

i want Remove all request goes to homepage Iwant to get 404.blade not to home page

and I did't get any solution to this from handeler NotFoundHttpException ? Is that because htaacces

0 likes
9 replies
lbecket's avatar

If you don't want the homepage route to be accessible, then just remove it from routes/web.php

1 like
ahmedariqi's avatar

@lbecket no iwant home to be accessible

but not when i go to wrong url they redirecting to website.com/home

Am soory i am new in laravel framework

ahmedariqi's avatar

@lbecket no bro iwant the opposite way , the default page of wrong url is 404.blade Not redirect to /home

ahmedariqi's avatar

@lbecket Thanks bro But i already have the errors folder and 404.blade ...etc I think like i couldn't explain my issue

1 like
Snapey's avatar

There could be a catch-all route at the bottom of your routes file?

Please or to participate in this conversation.