1
I have an application on my local server, I followed all the steps to have index.php removed from the url in codeigniter, on my local machine worked perfectly. Therefore, 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, but the index.php appears in the URL, if I delete from the URL the index.php and ENTER hit, the site loads normally. The question is whether I enter the URL and enter, the index.php appears in the URL or enter through the link found in the google search. SSL only have on my hosting, I do not have on my local machine.
Follow my file . htaccess configuration
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 am using in a subdomain within my hosting.
I hope you can help me, thank you so much.
Nothing better than the documentation
– NoobSaibot
I looked at everything in the documentation.
– Tadeu RT