Kevin, I have found a quick and dirty fix to it (which is probably part of
the problem) and that was to just point the ErrorDocument 404 handler at
index.php. Of course this fills up the error log. Anyway around this?
-----Original Message-----
From: Kevin Bonner [mailto:keb (at mark) pa.net]
Sent: Friday, April 14, 2006 5:09 PM
To: coba-e (at mark) bluequartz.org
Subject: [coba-e:04673] Re: RewriteEngine
On Friday 14 April 2006 16:33, Darrell D. Mobley wrote:
> I am attempting to drop an .htaccess file in my web document root
directory
> 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
need
to use flags to chain the RewriteCond rules. The following should be what
you want:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
Kevin Bonner