View Full Version : Expression Engine
Rodney-E2
07-10-2007, 11:20 PM
We have a customer who is using expression engine and is getting 500 errors when running their rewrite rules, below is a copy of the .htaccess file:
# REDIRECT ROOT
# /////////////////////////////
DirectoryIndex index.php
# REMOVE INDEX.PHP FROM EE
# /////////////////////////////
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
does anyone have any idea why this is occurring?
mistwang
07-11-2007, 08:31 AM
The 500 error is not likely related to the rewrite rule, you can comment out the rewrite rule see if you still get the 500 error. Just acccess the rewritten URL directly, like /index.php/org/path .
Rodney-E2
07-12-2007, 12:16 PM
We’ve ruled out anything to do with EE or the plugin at this point - this is purely a .htaccess and mod_rewrite issue, but we’ll work with you to try to figure out what is going on. It really does sound like a restriction on the hosting end, though.
I got this reply from EE.
Is their no limitations within litespeed for this rule?
mistwang
07-12-2007, 06:20 PM
I don't think it is the rewrite rule.
You can add "RewriteLogLevle 9" to the configuration of this vhost in httpd.conf. then check the rewrite log in error.log.
Rodney-E2
07-13-2007, 10:22 AM
2007-07-13 11:21:02.248 [ERROR] [76.205.236.166:51693-0#APVH_www.DOMAIN.com] Maximum number of redirect reached.
2007-07-13 11:21:02.248 [ERROR] [76.205.236.166:51693-0#APVH_www.DOMAIN.com] Maximum number of redirect reached.
2007-07-13 11:21:02.326 [ERROR] [76.205.236.166:51694-0#APVH_www.DOMAIN.com] Maximum number of redirect reached.
2007-07-13 11:21:02.326 [ERROR] [76.205.236.166:51694-0#APVH_www.DOMAIN.com] Maximum number of redirect reached.
This is returning this, remember, this is the exact same working .htaccess code that is used in apache and recommended by EE.
mistwang
07-13-2007, 10:35 PM
OK, got it.
The fix should be in the latest 3.2 build.