codeigniter - Redirecting http request to https -
i'm working on codeigniter project , having trouble web.config file. got redirect working http request redirected https links getting rerouted index page.
i haven't worked web.config files before , bear me if answer obvious. web config code below. appreciated. thanks!
<rewrite> <rules> <!-- begin rule tag https redirect --> <rule name="force https" enabled="true"> <match url="(.*)" ignorecase="false" /> <conditions> <add input="{https}" pattern="off" /> </conditions> <action type="redirect" url="https://{http_host}" appendquerystring="true" redirecttype="permanent" /> </rule> <!-- end rule tag https redirect --> <rule name="rewrite index.php"> <match url="index.php|robots.txt|images|test.php" /> <action type="none" /> </rule> <rule name="rewrite ci index"> <match url=".*" /> <conditions> <add input="{request_filename}" pattern="css|js|jpg|jpeg|png|gif|ico|htm|html" negate="true" /> </conditions> <action type="rewrite" url="index.php/{r:0}" /> </rule> </rules> </rewrite>
Comments
Post a Comment