Community

htaccess quick fix

ol
olhapi #1

Hello guys. Installed openlightspeed with cyberpanel and it works like a charm. Many thanks, it’s a greatest free cpanel alternative.
But I found out that htaccess rules don’t work when I moved from apache to openlightspeed. Could you please help me? I believe it’s a really quick 1 minute fix. I tried a few fixes from documentation without success. Here’s my apache rules:

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/i_files/(.)
RewriteRule ^(.
)$ index.php\?link=$1 [L,QSA]

I believe that I need to update the third line but didn’t know how.

ol
olhapi #3
Check log files seems QSA is not supported or maybe OpenLiteSpeed failed to parse some regular expressions, however rules seem fine -> https://cyberpanel.net/docs/location-of-configuration-files/

Thanks for the response. I figured out that it works fine when htaccess located in root folder of the website and didn’t work in subfolder. Are there anything I can do to make it work in subfolder?

ol
olhapi #5

Just checked with new folder and it works. Thank you guys.

Sign in to reply