I decided to test litespeed again after a few years since the open source version was not mature enough for my dev box. Install on CentOS was great, I was able to manage everything on the test box except I had no problems with Apache and once I replaced it with Litespeed I have nothing but problems with rewrite rules.
I understand this is an enterprise feature but I assumed that now rules are support on the open source version. Without them the server is not usable at all because almost every website, framework today has some kind of rewrite rules in place. To resume, everyone that needs to run PHP can't use this in the current state without being able to read .htaccess files. Every single app I know has some rules.
I have tried absolutely everything, the server completely ignores .htaccess files. Even a default installation with the Example folder, the .htaccess file in that example folder is useless. I have enabled rewrite in the server global settings, in the virtual host, I have tried everything for hours, search multiple solutions, nothing works.
I tried gazillion different rules, even some basic ones to test if they work like:
Nothing. If I put them in the admin web console, they work. But the server will refuse to read anything in a .htaccess file, root folder, subfolders, nothing.
I have also searched this forum and the only thing I found recently was this:
https://www.litespeedtech.com/suppo...g-on-openlitespeed-install.17434/#post-105940
I understand that only rewrite rules are supported on .haccess and not other rules, but even that does not work in my case. The server just completely ignores the .htaccess file. I checked permissions, I enabled debug 9 on the vhost, nothing. Nothing in the logs either. If the rules are wrong at least it would record something in the debug console but my problem is not the server not understanding the rules but it seems its just not using or ignoring the file completely. As index files I have set index.php and index.html, I'm not sure if I have to enable something in the server so it starts reading .htaccess files on folders because nothing I tested works. I'm starting the belive this version is bugged. If its not, this is seriously not usable out of the box. I can just remove the server and reinstall apache in 10 minutes and have everything working again, even NGINX works out of the box and most apps have rules for that server as well. A normal person should not be playing hours and hours to get something basic working. I'm not talking here about complex rules, but just read the .htaccess
I installed the server yesterday so I assume its the latest version.
I understand this is an enterprise feature but I assumed that now rules are support on the open source version. Without them the server is not usable at all because almost every website, framework today has some kind of rewrite rules in place. To resume, everyone that needs to run PHP can't use this in the current state without being able to read .htaccess files. Every single app I know has some rules.
I have tried absolutely everything, the server completely ignores .htaccess files. Even a default installation with the Example folder, the .htaccess file in that example folder is useless. I have enabled rewrite in the server global settings, in the virtual host, I have tried everything for hours, search multiple solutions, nothing works.
I tried gazillion different rules, even some basic ones to test if they work like:
RewriteRule /.* /somenonexistentfolder/index.php [F]
Nothing. If I put them in the admin web console, they work. But the server will refuse to read anything in a .htaccess file, root folder, subfolders, nothing.
I have also searched this forum and the only thing I found recently was this:
https://www.litespeedtech.com/suppo...g-on-openlitespeed-install.17434/#post-105940
I understand that only rewrite rules are supported on .haccess and not other rules, but even that does not work in my case. The server just completely ignores the .htaccess file. I checked permissions, I enabled debug 9 on the vhost, nothing. Nothing in the logs either. If the rules are wrong at least it would record something in the debug console but my problem is not the server not understanding the rules but it seems its just not using or ignoring the file completely. As index files I have set index.php and index.html, I'm not sure if I have to enable something in the server so it starts reading .htaccess files on folders because nothing I tested works. I'm starting the belive this version is bugged. If its not, this is seriously not usable out of the box. I can just remove the server and reinstall apache in 10 minutes and have everything working again, even NGINX works out of the box and most apps have rules for that server as well. A normal person should not be playing hours and hours to get something basic working. I'm not talking here about complex rules, but just read the .htaccess
I installed the server yesterday so I assume its the latest version.
Last edited by a moderator: