LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Rewrite Problem

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-20-2007, 08:58 AM
Jetro Jetro is offline
Member
 
Join Date: Aug 2005
Location: Poland
Posts: 18
Default Rewrite Problem

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
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:14 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.