RewriteEngine on
RewriteCond $1 !^(index\.php|image|casche|db|uploads|css|js|assets|helper|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

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