Codeigniter remove index.php on https
<p>I am using godaddy as my server provider and I bought an SSL certificate. It gave me some headache with index.php in my CodeIgniter project. I can not remove the index.php from my url.
I researched around and tried everything I found but nothing works for me, so do not consider it as a double please.
<br />
<br />
If: <a href="https://example.com/index.php/home" rel="nofollow">https://example.com/index.php/home</a> - works perfectly fine <br />
If: <a href="https://example.com/home" rel="nofollow">https://example.com/home</a><br />
I get a 404 Error. Not Found The requested document was not found on this server.
<br />
<br />
So far, I have stoped at these conditions in my htaccess file:</p>

<pre><code>RewriteEngine on

RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (sale|success|cancel) [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !(static|sale|success|cancel) [NC]
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteCond $1 !^(index\.php|resources|robots\.txt|static) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</code></pre>

<p>Any advice would be helpful. Thank you!</p>