Discussion in 'Install/Configuration' started by vip562, May 11, 2006.

  1. vip562

    vip562 Member


    How do I enable mod_rewrite and htaccess support?

  2. mistwang

    mistwang LiteSpeed Staff

    Looking for "Allow Override" option and "Rewrite" tab under vhost configuration.
  3. vip562

    vip562 Member

    I am using the fresh install of LS-std and I have used the option to use my apache conf (not import during install). I turned on "Enable Rewrite" in the "centralConfigLog" but the rewrite function still does not work. Is there something I am doing wrong?

  4. mistwang

    mistwang LiteSpeed Staff

    Is the rewrite rule in httpd.conf or .htaccess, if it is .htaccess, you need to turn on "allow override" at server level. If you don't mind, you can send your httpd.conf to bug (at) , we will give it a try.
  5. vip562

    vip562 Member

    When I click the server button in the LS control panel, it shows this.

    HT Access Edit
    Allow Override XLimit XAuth XFileInfo XIndexes XOptions None
    Access File Name .htaccess

    The X is a checkmark.

  6. vip562

    vip562 Member

    I forgot to mention that the rewrite rule is in the .htaccess

    Also, my server config is cpanel with centos.
  7. mistwang

    mistwang LiteSpeed Staff

    Please download 2.1.15 package again, htaccess support has not been turned on for vhost configured through httpd.conf. The bug has been fixed.
  8. vip562

    vip562 Member

    wow, its fast. Too bad I could not get all my sites to load properly.

    The apps that do not use rewrite base (in htaccess - mod_rewrite) do not seem to work.

    An example of one site that just gets blank pages (its zencart),

    RewriteEngine on
    # set RewriteBase to DIR_WS_CATALOG
    RewriteBase /
    RewriteRule ^pages-(.+)\.html index.php/pages-$1 [L]

    Any ideas on how to fix this.

  9. mistwang

    mistwang LiteSpeed Staff

    Getting blank page may not be the fault of rewrite though. Might be PHP configuration, MySQL or something else, plesae check lsws/logs/error.log and stderr.log.

    You can trun on rewrite logging in httpd.conf for that vhost, and post rewrite related log in error.log here.

Share This Page