WordPress site redirects to homepage on url sitename.com/gibberish but shows proper 404 page on url sitename.com/?p=2423424


When I use the url as sitename.com/gibberish, I get 301 redirected to homepage instead of the 404 page.
However, when I use sitename.com/?p=53452, where 53452 is a non-exitent post id, I get proper 404 page.

I want to have sitename.com/gibberish to return a 404 page.

Sunit Raut 1 month 0 Answers 3 views 0

Leave an answer