[wp-trac] [WordPress Trac] #11348: Archive Page Should be 404.php When !have_posts()
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 1 18:45:01 UTC 2010
#11348: Archive Page Should be 404.php When !have_posts()
--------------------------+-------------------------------------------------
Reporter: miqrogroove | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.9
Component: Query | Version: 2.8.4
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment(by technosailor):
filosofo is bang on. As the contributor of the patch in #5324, I'll weigh
in.
1) You seem to only want to fight. That's not really a great way to get
things done.[[BR]]
2) Server resources and web application resources are different[[BR]]
3) A 404 is a server response code[[BR]]
4) Apache/IIS can both find an empty category archive so it is not a
404[[BR]]
5) Apache/IIS cannot find a URL like /my-lovely-category-archive/iamempty/
without help from a plugin so it would be a 404.[[BR]]
6) Reiterating 4... WordPress can run a successful query against the
database because it has all the resources necessary to do it with
/category/iamempty/. It returns an empty dataset from MySQL but not an
empty HTTP resource. It's not a 404.[[BR]]
7) Reiterating 5... WordPres cannot create a successful dataset from MySQL
because the variables passed via HTTP are not legitimate. Therefore the
HTTP request is bad resource URI generating a legitimate 404.[[BR]]
Why are we even debating this?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11348#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list