Web Config file for a codeigniter application Web Config file for a codeigniter application codeigniter codeigniter

Web Config file for a codeigniter application


Have you tries this method as mention here

https://blogs.msdn.microsoft.com/azureossds/2015/04/23/converting-apache-htaccess-rules-to-iis-web-config-using-iis-manager-for-azure-websites/

also it is mention over here

https://blogs.msdn.microsoft.com/azureossds/2015/09/28/convert-apache-htaccess-to-iis-web-config/

under the URL Rewriting section. It has the same .htaccess which I am using also there are many online converters to whom you can give a try


For your config file, try this article. It appears that your issue is on your action line.

<action type="Rewrite" url="index.php?{R:1}" appendQueryString="true" />

Change that to:

<action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />

The question mark is causing your issue. Also, your match line might be changed to:

<match url="^(.*)$" ignoreCase="false" />

That is a bit more specific and might prevent some headaches later on.


<?xml version="1.0" encoding="UTF-8"?><configuration>  <system.webServer>    <rewrite>      <rules>        <rule name="Imported Rule 1" stopProcessing="true">          <match url="^(.*)$" ignoreCase="false" />          <conditions logicalGrouping="MatchAll">              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />              <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />          </conditions>          <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />          </rule>      </rules>    </rewrite>  </system.webServer></configuration>

you can try this code it will work fine i am also using this code only

thank you