RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?/$1 [QSA,L]

RewriteRule ^(system|vendor|templates|uploads)/$ - [R=404]
RewriteRule ^(system|vendor|templates|uploads)/.*/$ - [R=404]
RewriteRule ^templates/.*\.(tpl|scss|gitkeep)$ - [R=404]
RewriteRule ^(system|vendor)/.*\.(php|dat|tpl|scss|gitkeep|inc|json|log)$ - [R=404]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php83” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php83 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
