Jalo: Changing the: Rewrite Rules
Jalo: (Some info:
Jalo: (Excerpt from the above link) Rewrite Rules
This is one of the most notable and important changes regarding rewrite rules from Apache to OpenLiteSpeed. Earlier it was very difficult for end users to convert rewrite rules from Apache to OpenLiteSpeed even though the difference was very slight.
However, with slight configuration changes (end user need not do anything on their end), you can now directly copy your Apache rules to CyberPanel rewrite rules box, 407 without needed to change your rewrite rules.
That’s a big relief)
Jalo: Right, well since I am seeking a relief regarding: trailing slash not working.
Jalo: Doing a change; [ Changing the: Rewrite Rules ]
From this: cat: /home/mydomain.tld/public_html/.htaccess: No such file or directory
…to this:
<Directory "/home/mydomain.tld/public_html">
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
</IfModule>
</Directory>
And: It now forces a trailing slash at the end of web page which then causes 404.
Any suggestions for correct approach?