Welcome Guest, Not a member yet? Register   Sign In
How I can show 404 if locale invalid?
#1

(This post was last modified: 11-24-2019, 12:00 PM by XTAZ.)

How I can show 404 if locale invalid?

My route:
$routes->add('{locale}', 'App\Controllers\Home::index');

But if I try open mysite.com/asdasdasd, or mysite.com/dad2da ... - I get HTTP code 200, I want get 404.

I must write crutch?

Then, if I write filter, how I detect what first segment used as locale, not controller?
Reply


Messages In This Thread
How I can show 404 if locale invalid? - by XTAZ - 11-24-2019, 11:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB