DirectoryIndex index.php
Options -Indexes
IndexIgnore *

# Disabling MultiViews prevents unwanted negotiation, e.g. "/index" should not resolve
# to the front controller "/index.php" but be rewritten to "/index.php/index".
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

# protects hidden files
<FilesMatch "^\.(.*)$">
    RewriteRule "^(.*)$" - [R=404,L]
</FilesMatch>

<IfModule mod_rewrite.c>
    RewriteEngine On
</IfModule>

# CUSTOM HTACCESS START - do not remove this line

#     force https - START
#        RewriteCond %{HTTPS} off
#        RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#     force https - END

#     set php version for cPanel with litespeed server - START
#        <FilesMatch "\.php$">
#        SetHandler application/x-lsphp73
#        </FilesMatch>
#     set php version for cPanel with litespeed server - END

#     set php version for DirectAdmin - START
#        AddHandler application/x-httpd-php73 php
#     set php version for DirectAdmin - END

#     put custom htaccess HERE - you can delete this line

# CUSTOM HTACCESS END - do not remove this line

<IfModule !mod_rewrite.c>
    <IfModule mod_alias.c>
        # When mod_rewrite is not available, we instruct a temporary redirect of
        # the start page to the front controller explicitly so that the website
        # and the generated links can still be used.
        RedirectMatch 307 ^/$ /index.php/
        # RedirectTemp cannot be used instead
    </IfModule>
</IfModule>
