.htaccess location questions

Discussion in 'General' started by closet geek, Jan 26, 2009.

  1. closet geek

    closet geek New Member

    Hi,

    In Apache you can place a .htaccess here:

    /home/user/public_html/.htaccess

    and the rules in that file will apply recursively to all directories beneath. I note in LiteSpeed only the .htaccess file in the subdirectory (for example /home/user/public_html/directory/.htaccess) is taken into account for .htaccess rewrites. This does not display the same behaviour as Apache.

    Thanks.
  2. mistwang

    mistwang LiteSpeed Staff

    It should work, enable rewrite logging with adding "RewriteLogLevel 9" to the vhost configuration section for that vhost.
  3. closet geek

    closet geek New Member

    Hi,

    Rewrite wasn't enabled in the vhost as I assumed it would work via the .htaccess with the setting: RewriteEngine on

    I have enabled Rewrite via the admin console now and also changed the log level to 9. I've restarted LS but nothing about rewrites is logged in the error.log and the rewrites still don't work.

    I can only see LS looking for a .htaccess file in the subdomain, not in the directory above which is where the .htaccess file with all the rules in is.

    Thanks.
  4. closet geek

    closet geek New Member

    Bump. We need this to work to be able to launch our site with LiteSpeed!
  5. mistwang

    mistwang LiteSpeed Staff

    Please PM me a temp root access to your server, I will take a look tomorrow.

Share This Page