So I have a Cyberpanel that I want to use for a laravel script. At first I thought the issue is due to the .htaccess in my root folder directly but I think the issue is the .htaccess file on my subfolder not being recognized by OpenLiteSpeed? I read about that Cyberpanel had an update where the htaccess does not need to be rewritten anymore to suit OpenLiteSpeed since it recognized rewrite rules now too but I think what happens is that it recognized the rewrite rule in my main folder only and not subdomain so when I open my site it is just white blank page (gets redirected to /public) which is due to this reason I believe but not sure at all since I do not have knowledge about Cyberpanel/Openlitespeed much at all.
Error Log;
2022-10-13 17:49:21.109145 [INFO] [46225] Rewrite directive: <IfModule mod_rewrite.c>
bypassed.
2022-10-13 17:49:21.109180 [INFO] [46225] Rewrite directive: <IfModule mod_negotiation.c>
bypassed.
2022-10-13 17:49:21.109185 [INFO] [46225] Invalid rewrite directive: Options -MultiViews -Indexes
2022-10-13 17:49:21.109189 [INFO] [46225] Rewrite directive: </IfModule>
bypassed.
2022-10-13 17:49:21.109236 [INFO] [46225] Rewrite directive: </IfModule>
bypassed.
2022-10-13 17:49:21.109240 [INFO] [46225] Rewrite directive: <ifModule mod_expires.c>
bypassed.
2022-10-13 17:49:21.109244 [INFO] [46225] Invalid rewrite directive: ExpiresActive On
2022-10-13 17:49:21.109248 [INFO] [46225] Invalid rewrite directive: ExpiresByType image/x-icon "access plus 30 days"
2022-10-13 17:49:21.109252 [INFO] [46225] Invalid rewrite directive: ExpiresByType image/gif "access plus 30 days"
2022-10-13 17:49:21.109256 [INFO] [46225] Invalid rewrite directive: ExpiresByType image/jpeg "access plus 30 days"
2022-10-13 17:49:21.109260 [INFO] [46225] Invalid rewrite directive: ExpiresByType image/png "access plus 30 days"
2022-10-13 17:49:21.109264 [INFO] [46225] Invalid rewrite directive: ExpiresByType image/svg+xml "access plus 30 days"
2022-10-13 17:49:21.109268 [INFO] [46225] Invalid rewrite directive: ExpiresByType audio/x-wav "access plus 30 days"
2022-10-13 17:49:21.109272 [INFO] [46225] Invalid rewrite directive: ExpiresByType font/woff2 "access plus 30 days"
2022-10-13 17:49:21.109276 [INFO] [46225] Rewrite directive: </ifModule>
bypassed.
2022-10-13 17:49:21.109281 [INFO] [46225] RewriteFile [/home/domain.xyz/public_html/public/.htaccess] parsed, return 0.
.htaccess of /public;
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Uncomment the below 2 lines if you like to add an auto redirect from http:// to https:// (works ONLY if the web root is set to ../public folder)
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresByType image/x-icon "access plus 30 days"
ExpiresByType image/gif "access plus 30 days"
ExpiresByType image/jpeg "access plus 30 days"
ExpiresByType image/png "access plus 30 days"
ExpiresByType image/svg+xml "access plus 30 days"
ExpiresByType audio/x-wav "access plus 30 days"
ExpiresByType font/woff2 "access plus 30 days"
</ifModule>