RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] # Without mod_rewrite, route 404's to the front controller ErrorDocument 404 /index.php # php -- BEGIN cPanel-generated handler, do not edit # Set the “alt-php74” package as the default “PHP” programming language. AddHandler application/x-httpd-alt-php74 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit