Summer Sale! All accounts are 50% off this week.

sllkevin's avatar

sllkevin wrote a reply+100 XP

6mos ago

Is it normal for 404.blade to respond as 301?

That's my thinking, but shouldn't bots and crawlers or curl pings receive a proper 404 response? I just checked the standard Laravel 404 (dark 404 | NOT FOUND page) and the response is 404 in dev tools. But my custom 404.blade is 301.

sllkevin's avatar

sllkevin started a new conversation+100 XP

6mos ago

Is it normal for 404.blade to respond as 301?

When using the browser network tools, I can see that any missing route originally reveals 404 before the official response as a 301 redirect to the 404.blade template.

However, I'm checking my Nginx access logs and all the bots pinging random wordpress routes all show the response as 301. Is this normal behavior?