Index..php remove php remove and HTTP to https redirect in CodeIgniter. make web.conig file and put the code.
<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<httpErrors errorMode=”Detailed” />
<asp scriptErrorSentToBrowser=”true”/>
<rewrite>
<rules>
<rule name=”Rule” stopProcessing=”true”>
<match url=”^(.*)$” ignoreCase=”false” />
<conditions>
<add input=”{REQUEST_FILENAME}” matchType=”IsFile”
ignoreCase=”false” negate=”true” />
<add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” ignoreCase=”false” negate=”true” />
<add input=”{URL}” pattern=”^/favicon.ico$” ignoreCase=”false” negate=”true” />
</conditions>
<action type=”Rewrite” url=”index.php/{R:1}” appendQueryString=”true” />
</rule>
<!– redirect non http to https –>
<rule name=”www redirect” enabled=”true” stopProcessing=”true”>
<match url=”.*” />
<conditions>
<add input=”{HTTP_HOST}” pattern=”^[^\.]+\.[^\.]+$” />
<add input=”{HTTPS}” pattern=”off” />
</conditions>
<action type=”Redirect” url=”https://www.{HTTP_HOST}/{R:0}” />
</rule>
<rule name=”www redirect https” enabled=”true” stopProcessing=”true”>
<match url=”.*” />
<conditions>
<add input=”{HTTP_HOST}” pattern=”^[^\.]+\.[^\.]+$” />
<add input=”{HTTPS}” pattern=”on” />
</conditions>
<action type=”Redirect” url=”https://www.{HTTP_HOST}/{R:0}” />
</rule>
<!– redirect non http to https –>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode=”Off”/>
<compilation debug=”true”/>
</system.web>