[solved] Apache Rewrite Rules with RewriteBase not working
We've migrated a client to LSWS 4.1.10 Ent from an Apache environment. The site worked perfectly in Apache but now the ReWrite rules aren't working correctly. Below are the rules in the problematic .htaccess file:
RewriteEngine On
RewriteBase /directory/
RewriteCond %{REQUEST_URI} !index.php
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)$ index.php?func=$1&urlA=$2&urlB=$3&urlC=$4 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ index.php?func=$1&urlA=$2&urlB=$3 [L]
RewriteRule ^([^/]*)/([^/]*)$ index.php?func=$1&urlA=$2 [L]
RewriteRule ^([^/]+)/(.*)$ index.php?func=$1 [QSA,L]
The rewrite engine appears to be working but its not passing variables on to index.php as it should be. We can't seem to figure out how to get it to work in LSWS even though everything works perfectly in Apache.
|