vow I think I found what is problem and why my rules arent working.
I use PHP Laravel Framework and Laravel use public folder for stream not the public_html. by default. I changed public_html to public folder. But cyberpanel is trying still read and write rewrite rules from public_html folder. I become aware of this when I deleted public_html folder and tried change rewrite rules.
That does not matter for HTTPS redirect at least. Did you change the docRoot path in vHost Conf?
If you manually change the docRoot path in vHost Conf, then make sure that directory contains your .htaccess, you can use File manager to manually create .htaccess, because by default CyberPanel will use /home/domain.com/public_htmlto place your rewrite rules.
And when you save rewrite rules from File manager, don’t forget to restart OpenLiteSpeed.
That does not matter for HTTPS redirect at least. Did you change the docRoot path in vHost Conf?
If you manually change the docRoot path in vHost Conf, then make sure that directory contains your .htaccess, you can use File manager to manually create .htaccess, because by default CyberPanel will use /home/domain.com/public_htmlto place your rewrite rules.
And when you save rewrite rules from File manager, don’t forget to restart OpenLiteSpeed.
So, what is the correct way to deploy a laravel app? using the current git feature?
I deploy my app, and attach a git repo to the public_html folder(only you can attach the repo to the public_html folder), then I change the docRoot path as you say
Did you change the docRoot path in vHost Conf?
to public_html/public
with this, my app does not redirect to https, the certificate works if you type the https, bu not if you type only the domain.