Support » Developing with WordPress » 404 with one querystring, but not another

  • Hey all,

    I have a custom page where I’m using a querystring to look something up. The issue I’m having is that for some reason, some querystrings works, and others return a page not found error. For example, a url with “” will work, but “” returns a 404.

    Is there a reason why changing a querystring parameter would cause one request to give a 404 and not the other?

    Thanks for the help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Let me ask the obvious: is there a record for this “dog” query to return?

    With the little information provided, the only explanation would be that the “cat” works because there’s something to return, whereas the “dog” query returns 404 because there’s no record to return.

    Thread Starter bizmarkcrb


    Hey George,

    Thanks for replying! I’m using php to search for a custom post type based on the parameter that comes in, and then displaying some resulting data on a page. If the post type query fails, and let’s say “Dog” is not found for some reason, why would that stop the rest of the page from loading? Shouldn’t I be able to handle that error on the page without a 404?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.