Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 8 down vote accepted

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.

share|improve this answer
1  
Aahh. Thanks that explains it perfetcly. –  byronyasgur Sep 14 '11 at 14:13

This is quite normal. The main page displays the content of id=1. If you state an id that does not exist (e.g. id=383893939), it will show the default index page. This behavior is defined in the php code treating $_GET.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.