After upgrading lsws from 2.2.6 to 3.0, one of virtualhosts, that uses rewrite rules in htaccess file, stopped work correctly. In server log i see:
ERROR [85.128.x.x:44929-0#hmt.pl] Maximum number of redirect reached.
.htacces:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^endemit\.hmt\.pl [NC]
RewriteRule (.*) /_endemit/$1 [L]
RewriteCond %{HTTP_HOST} ^projekt\.hmt\.pl [NC]
RewriteRule (.*) /_projekt/$1 [L]
RewriteCond %{HTTP_HOST} ^klasad\.hmt\.pl [NC]
RewriteRule (.*) /_klasad/$1 [L]
RewriteCond %{HTTP_HOST} ^www.hmt.pl$
RewriteRule ^(.*)$ http://hmt.pl/ [R=301,L]
ErrorDocument 404 http://hmt.pl/error.php?error=404
ErrorDocument 400 http://hmt.pl/error.php?error=400
ErrorDocument 403 http://hmt.pl/error.php?error=403
ErrorDocument 500 http://hmt.pl/error.php?error=500
ERROR [85.128.x.x:44929-0#hmt.pl] Maximum number of redirect reached.
.htacces:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^endemit\.hmt\.pl [NC]
RewriteRule (.*) /_endemit/$1 [L]
RewriteCond %{HTTP_HOST} ^projekt\.hmt\.pl [NC]
RewriteRule (.*) /_projekt/$1 [L]
RewriteCond %{HTTP_HOST} ^klasad\.hmt\.pl [NC]
RewriteRule (.*) /_klasad/$1 [L]
RewriteCond %{HTTP_HOST} ^www.hmt.pl$
RewriteRule ^(.*)$ http://hmt.pl/ [R=301,L]
ErrorDocument 404 http://hmt.pl/error.php?error=404
ErrorDocument 400 http://hmt.pl/error.php?error=400
ErrorDocument 403 http://hmt.pl/error.php?error=403
ErrorDocument 500 http://hmt.pl/error.php?error=500