Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!
Moderator: General Moderators
-
Luke
- The Ninja Space Mod
- Posts: 6424
- Joined: Fri Aug 05, 2005 1:53 pm
- Location: Paradise, CA
Post
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?
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
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.
-
AKA Panama Jack
- Forum Regular
- Posts: 878
- Joined: Mon Nov 14, 2005 4:21 pm
Post
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.
-
Luke
- The Ninja Space Mod
- Posts: 6424
- Joined: Fri Aug 05, 2005 1:53 pm
- Location: Paradise, CA
Post
by Luke »
AKA Panama Jack wrote:Either your path to the so file is wrong...
that's what it was
-
panic!
- Forum Regular
- Posts: 516
- Joined: Mon Jul 31, 2006 7:59 am
- Location: Brighton, UK
Post
by panic! »
Try
RewriteRule /(.*) index.php
tell me how it goes..