Index: [Article Count Order] [Thread]

Date:  Fri, 14 Apr 2006 17:09:29 -0400
From:  Kevin Bonner <keb (at mark) pa.net>
Subject:  [coba-e:04673] Re: RewriteEngine
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200604141709.34547.keb (at mark) pa.net>
In-Reply-To:  <!&!AAAAAAAAAAAYAAAAAAAAAPc/2lpi38BEv46VBpDc+JTCgAAAEAAAAD0Wj/FDoVlMirdFslv0lyoBAAAAAA== (at mark) uhostme.net>
References:  <!&!AAAAAAAAAAAYAAAAAAAAAPc/2lpi38BEv46VBpDc+JTCgAAAEAAAAD0Wj/FDoVlMirdFslv0lyoBAAAAAA== (at mark) uhostme.net>
X-Mail-Count: 04673

On Friday 14 April 2006 16:33, Darrell D. Mobley wrote:
> I am attempting to drop an .htaccess file in my web document root directo=
ry
> with the following in it:
>
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*) index.php
>
> When I do, I get a 500 server error.  I tried commenting out each line to
> see where the error was being generated, and when RewriteEngine On is
> enabled, it fails.  Is there something I need to configure in order to be
> able to run this .htaccess file?

When you want to use one rule when matching on more than 1 condition, you n=
eed=20
to use flags to chain the RewriteCond rules.  The following should be what=
=20
you want:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f  [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

Kevin Bonner

attatchment (application/pgp-signature) ignored