[wp-hackers] 404's not showing if '%category%' is in permalink

Ade Walker photofantaisie at gmail.com
Mon Nov 24 02:00:27 GMT 2008

As far as I can remember, if your theme doesn't have a 404.php your request
will be directed to index.php, and since no such post is found by the loop
you will get whatever "standard" loop message has been coded in your
index.php eg "Sorry posts not found" or something similar.

The best way to deal with this is to create a 404.php page. Much better than
a server type 404. There's more here:


2008/11/24 Alex Hempton-Smith <hempsworth at googlemail.com>

> Hi all,
> I have a custom permalink structure like this: /%category%/%postname%/
> When I visit a URL which should be a 404, I get given the message
> "Sorry, but there aren't any posts in the category yet.".
> Shouldn't WordPress recognize that the category doesn't exist and serve up
> a
> 404 instead?
> -- Alex
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list