Deploy PHP application on IIS Deploy PHP application on IIS codeigniter codeigniter

Deploy PHP application on IIS


try this web.config

<?xml version="1.0" encoding="UTF-8"?>    <configuration>        <system.webServer>            <rewrite>                <rules>                    <rule name="Rewrite to 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}" matchType="IsFile" negate="true" />                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />                        </conditions>                        <action type="Rewrite" url="index.php/{R:1}" appendQueryString="false" /> </rule>                </rules>            </rewrite>        </system.webServer>    </configuration>

In the config.php file, change $config['uri_protocol']= 'QUERY_STRING' to $config['uri_protocol'] = 'AUTO'.