[wp-hackers] RE: .htaccess cleanup

Kimmo Suominen kimmo+key+wordpress.c4f53f at suominen.com
Sun May 22 22:22:27 GMT 2005


On Sun, May 22, 2005 at 02:38:04PM -0500, Ryan Boren wrote:
> On Sun, 2005-05-22 at 22:00 +0300, Kimmo Suominen wrote:
> > I have those rules commented out in my .htaccess, but I haven't put in a
> > comment on why I'm not using them.
> > 
> > I did some experimenting now, and the rules work fine except that I never
> > get a 404 error for URL's that don't exist.  I just get the "root blog"
> > page (i.e. most recent posts).
> 
> WP itself should handle issuing a 404.  There was a bug with this in 1.5
> where the 404 wasn't always issued properly, but that should be fixed in
> 1.5.1[.1].  WP will also display the 404 template, if present.  If not,
> you will see the regular index.   Well-behaved themes should have a
> separate 404 template or handle the is_404() condition in their index.
> The default theme has a 404 template.  The Classic theme does not.

Ryan -- thanks for the pointer -- that's it!  I'm not checking for
is_404() in the embedding index.

Yet another reason to do the embedding "the other way around," i.e.
by calling the non-wp parts from within a custom theme.

Thanks again!

Regards,
+ Kim
-- 
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>



More information about the wp-hackers mailing list