OMG it worked.
Created a static context /
URI: /
Location: $DOC_ROOT/
Accessible: Yes
RewriteBase: Yes
RewriteRule: RewriteRule min/(\w+)\.(css|js)$ static/cache/$2/$1.$2 [L]
And as @eaonflux said sudo service lsws restart.
Somehow forced restart from the OLS GUI did not work. so make sure...
I did the forced restarts everytime i changed htaccess. (I think you can do it from the OLS portal too ?)
I am trying to rewrite URL https://st1.example.com/min/1nds.js to https://st1.example.com/static/cache/js/1nds.js
I changed my subdomain document root and kept it outside the public_html...
@Cold-Egg @Pong https://forum.openlitespeed.org/threads/unable-to-rewrite-url-for-subdomain.4227/#post-8372
This looks like a similar issue i am facing too. I have sent all details on the support@litespeedtech.com too.
Hi,
I have below scenario.
I have my main site at https://www.example.com and i have a subdomain at https://st1.example.com
Main site document root is /home/example.com/public_html &
subdomain document root is changed to /home/example.com/subdomains/cdn/
Basically i am serving static content...