Have read a lot of posts and topics about 404 and permalinks, but couldn’t find a solution.
I have installed WordPress on a IIS machine, and have setup a custom permalink configuration (Also tried the date and name base but didn’t help either).
When I try to access a non-existing post, then instead of being redirected to the custom 404.php, then I get the message (When using the default theme):
“Sorry, no posts matched your criteria.”
Foreample this url points to an existing page:
This one should give me a 404:
And this one should also give me a 404:
But I don’t get the custom 404.php message “Error 404 – Not Found”.
I guess the reason for not getting the 404 is that index.php is specified and therefore it is a valid url.
How do I get index.php to see that the page requested doesn’t exist and instead returns a 404 ? or is there a completely different solution (besides using apache) ?