[wp-trac] Re: [WordPress Trac] #7592: index.php doesn't generate 404's

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 26 00:38:49 GMT 2008


#7592: index.php doesn't generate 404's
---------------------+------------------------------------------------------
 Reporter:  btmorex  |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.7      
Component:  General  |      Version:  2.6.1    
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by btmorex):

 Actually, I don't know if trying to access index.php?error=404 should
 actually respond with a 404. However, it definitely shouldn't be returning
 the default home page.
 http://codex.wordpress.org/Creating_an_Error_404_Page says that it should
 return the custom 404 page I'm using (which, btw does work).

 More generally, the reason I think that index.php should be returning 404
 for these bad queries is that currently it's serving the same content
 through potentially many, many different urls. That I'm told is bad
 practice. Also, suppose a search engine crawler grabs a bad url from
 somewhere (typo)... it's going to keep crawling that page forever because
 wordpress never returns an error.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7592#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list