[wp-trac] Re: [WordPress Trac] #2996: Content-managed error pages (particularly for 404 errors)

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 6 05:55:54 GMT 2006


#2996: Content-managed error pages (particularly for 404 errors)
----------------------------+-----------------------------------------------
 Reporter:  wnicholls       |        Owner:  anonymous
     Type:  enhancement     |       Status:  new      
 Priority:  normal          |    Milestone:  2.1      
Component:  Administration  |      Version:           
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by RuddO):

 Ok, I know what you want.  In fact, I have WP-managed error documents on
 my blog.

 First off, let me tell you: the standard 404 page can be themed.  Of
 course, if you're accessing an existing directory, WP won't work because
 since the directory exists, WP's engine doesn't kick in.

 I coded a workaround on my RevvedUp and Burnin' R themes:
 http://rudd-o.com/projects/revvedup/ and
 http://rudd-o.com/projects/burninr/.  They add ErrorDocument directives to
 .htaccess so, instead of showing the standard Apache error document, they
 call index.php?error=[errorcode].  Some elbow grease in the themes'
 functions.php and index.php detect this argument and show a proper error
 page, that ranges in the 400 and 500 HTTP error domains.

 Of course, if this were moved to core WP (and made themeable), it wouldn't
 be such a bad idea.

 My themes also theme the Apache directory listings.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2996>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list