[wp-hackers] RE: .htaccess cleanup
kimmo+key+wordpress.c4f53f at suominen.com
Mon May 23 00:26:09 GMT 2005
FWIW, my web server cannot write to .htaccess and having to cut&paste
the rules every time I add a page is an extra step I can do without.
*I* am not looking to optimize performance with this.
P.S. I know more than one way to enable the web server to write to
the .htaccess file, but I prefer keeping the file under "manual"
control for now. I run other sites with WP writing the file and it
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>
On Sun, May 22, 2005 at 06:45:49PM -0400, Robert Deaton wrote:
> If you ask me, all of this is a bit of premature optimization. If
> anyone care to look up mod_rewrite benchmark, you'll see that it
> easily handles thousands of rules without a hiccup. Unless the
> intention is to make things easier on someone that wants to have their
> own rules in their .htaccess, I think all should stay as is. Why
> change something that has been proven to work well?
> On 5/22/05, Kimmo Suominen <kimmo+key+wordpress.c4f53f at suominen.com> wrote:
> > 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