.htaccess location questions

closet geek

Well-Known Member
#1
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.
 

closet geek

Well-Known Member
#3
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.
 
Top