I had always thought that placing anything spurious after the 404 which the server didn't understand would result in a 404; however I had a closer look at a WordPress site which I was building and noticed that if I appended something like /?page_iid=1 ( note the ? and also the typo ) to the domain that the redirect went to the site's home page rather than the 404 page. At first I thought this was just WordPress; but evidently it's unilateral across the web. Presumably this is a well known and easily explainable fact which has eluded me for years, but could someone kindly explain it to me. I am a little perturbed that the 404 system isn't able to handle a typo after a '?' so I presume it's unavoidable but if it isn't then I'd like to know a way of sorting it out.
Just discovered something I never knew about 404 - could someone explain this
404;query string
What you're seeing is normal behavior. What you're doing is appending a query string to the home page. If the home page exists, and it always does, it will receive the parameters of the querystring. Now whether or not it uses them or not is up to the page itself. Most pages not expecting a query string will just completely ignore it and display the page normally.