Mod Rewrite Rule works on Apache not on Litespeed

Discussion in 'Apache Migration/Compatibility' started by Bini, Mar 17, 2012.

  1. Bini

    Bini New Member

    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
  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. Bini

    Bini New Member

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

    webizen New Member

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

Share This Page