<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond $1 !^(index\.php|robots\.txt|resources|static|uploads)
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1 [L,R]
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>