Page 1 of 1
mod_rewrite causing internal server error
Posted: Sun Sep 24, 2006 4:16 pm
by Luke
Does anybody know why a rewrite rule like this would cause an "Internal Server Error"?
Code: Select all
RewriteEngine On
RewriteRule .* index.php
LoadModule rewrite_module modules/mod_rewrite.so is uncommented in http.conf. Anything else I could be doing wrong?
Posted: Sun Sep 24, 2006 4:49 pm
by feyd
Likely, it's an infinite (rewrite) result. If that's the case, you need a rewrite condition such that you do the rewrite if it's not index.php.
Posted: Sun Sep 24, 2006 6:46 pm
by AKA Panama Jack
Two things...
Either your path to the so file is wrong...
or
the so file is the wrong one for the version of Apache you are running.
Posted: Mon Sep 25, 2006 12:25 am
by Luke
AKA Panama Jack wrote:Either your path to the so file is wrong...
that's what it was
Posted: Mon Sep 25, 2006 3:42 pm
by panic!
Try
RewriteRule /(.*) index.php
tell me how it goes..