LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Apache Migration/Compatibility (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=24)
-   -   Mod Rewrite Rule works on Apache not on Litespeed (http://www.litespeedtech.com/support/forum/showthread.php?t=5775)

Bini 03-17-2012 07:47 AM

Mod Rewrite Rule works on Apache not on Litespeed
 
Hello there,

The following rewrite rule are working very well on apache but not on litespeed can i get a fix please?

RewriteRule ^artist/$ artists.php
RewriteRule ^artists/(.*)$ artists.php$1
RewriteRule ^artist/(.*)/sort-(.*)-page-([0-9]+)/?$ artist.php?artist=$1&sort=$2&page=$3 [B,L]
RewriteRule ^artist/(.*)/$ artist.php?artist=$1

Thanks

mistwang 03-17-2012 10:21 AM

Please turn on rewrite logging with

RewriteLogLevel 9

You need to put that directive in the vhost configuration section for that virtual host.
Then check error.log for related log entries. You can either post it here, PM or send to bug@litespeed...

And, we need more information about your setup to trouble shoot it. where the .htaccess file located relative to the document root, what is the URL need to be rewritten, what is the expected result.

Bini 03-17-2012 11:20 AM

I am asking my hosting about this and as soon as they tell me i will tell you

webizen 03-27-2012 10:34 AM

the issue was due to B flag not being supported in LSWS. It is now supported in 4.1.12.


All times are GMT -7. The time now is 05:48 PM.