I have an application on my local server, I followed all steps so that index.php was removed from the url in codeigniter, my local machine worked perfectly. So I put the application on the internet, in my hosting and also worked perfectly when I enter. The problem started when I put SSL, now if I type my URL, my application loads normally and with the SSL certificate identified and validated, however the index.php appears in the URL, if I delete the URL the index.php and press ENTER, the site loads normally. The question is if I type the URL and enter, the index.php appears in the URL or if I enter through the link found in the google search. SSL I only have in my hosting, I do not have it on my local machine.
Following is the configuration of my .htaccess file
RewriteEngine on
RewriteCond $1 !^(index\.php|content|robots\.txt)
RewriteCond $1 !^(index\.php|documentacao|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Note: I'm using a subdomain within my hosting.
I hope you can help me, thank you very much in advance.