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