I have found the bug, and it is real.
All it takes is for a sub-directory to have the directive:
RewriteEngine On
in it's own sub .htaccess, and the parent redirect will never happen.
No other rule is present in the subdirectory.
If I remove that RewriteEngine On - the redirect will work properly, even with other rules.
Apparently "RewriteEngine On" causes the rewrite engine in litespeed to reset.
This is not the behaviour in apache, which will ignore it if it's already on.
Try making a sub-directory called /testing123/
and make a .htaccess in it
and put in the .htaccess
RewriteEngine On
then go to
Code:
www.store.litespeedtech.com/testing123/
and it will NOT redirect to the URL without the www.