Hi
I'm using openlitespeed on the new vps with directadmin
I've problems with htaccess
301 redirects set by directadmin are taken correctly after restarting the litespeed service.
Instead if I put the same line myself in the htaccess file and restart litespeed it doesn't take it.
the problem is similar to this one but I'm sure that the rules are not seen from the file htaccess
https://forum.openlitespeed.org/threads/openlitespeed-rewrite-rules-ignored-or-overridden.5584/
after many tests I realized that there is an intermediate system that keeps these htaccess rules in memory.
if I put 301s in directadmin, then I find them in the main htaccess file of the site.
If I remove these lines and restart litespeed, the rules still work
if I add similar ones to the file they are not taken into consideration
so there is another system that overrides these commands in htaccess. Restarting the service doesn't fix anything and using the cronjob doesn't fix it either
if ! find /home/*/domains/*/*_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi
the redirect is like this one
Redirect 301 /catalog/cassette/* https://www.terrecottemital.it/shop/it/4-cassette-in-terracotta
and
https://www.terrecottemital.it/catalog/cassette/aaaaa
is not redirect to the second url
if I set this line in another website with litespeed it works well
the problem is due from directadmin or from openlitespeed?
everyone says to restart the service, but it seems strange to me that only 301 redirects made by the directadmin panel are taken
I've set
Redirect 301 /la-famiglia.html https://www.terrecottemital.it/chi-siamo
by myself in the htaccess but only if I sett it from directadmin works
thanks
I'm using openlitespeed on the new vps with directadmin
I've problems with htaccess
301 redirects set by directadmin are taken correctly after restarting the litespeed service.
Instead if I put the same line myself in the htaccess file and restart litespeed it doesn't take it.
the problem is similar to this one but I'm sure that the rules are not seen from the file htaccess
https://forum.openlitespeed.org/threads/openlitespeed-rewrite-rules-ignored-or-overridden.5584/
after many tests I realized that there is an intermediate system that keeps these htaccess rules in memory.
if I put 301s in directadmin, then I find them in the main htaccess file of the site.
If I remove these lines and restart litespeed, the rules still work
if I add similar ones to the file they are not taken into consideration
so there is another system that overrides these commands in htaccess. Restarting the service doesn't fix anything and using the cronjob doesn't fix it either
if ! find /home/*/domains/*/*_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi
the redirect is like this one
Redirect 301 /catalog/cassette/* https://www.terrecottemital.it/shop/it/4-cassette-in-terracotta
and
https://www.terrecottemital.it/catalog/cassette/aaaaa
is not redirect to the second url
if I set this line in another website with litespeed it works well
the problem is due from directadmin or from openlitespeed?
everyone says to restart the service, but it seems strange to me that only 301 redirects made by the directadmin panel are taken
I've set
Redirect 301 /la-famiglia.html https://www.terrecottemital.it/chi-siamo
by myself in the htaccess but only if I sett it from directadmin works
thanks