CodeIgniter Forums

Full Version: Windows IIS7 htacess vs web.config
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Fatih[/eluser]
Dears,

I have a big problem for my a new project. I coded a web site in CodeIgniter with LAMP. But I must to move this website to Windows IIS7 server. I tried to everythings but my site is not still working due to routing.

here is the my htaccess file:

Code:
RewriteEngine on
RewriteRule ^$ /index.php [L]
RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]

and here is to change my web.config file

Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="rule1" stopProcessing="true">
                    <match url="^$" ignoreCase="false" />
                    <action type="Rewrite" url="http://localhost/web_site/index.php"  />
                </rule>
                <rule name="rule2" stopProcessing="true">
                    <match url="^(.*)" ignoreCase="false" />
                    <action type="Rewrite" url="http://localhost/web_site/index.php{R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

My

And here it is the error summary.

Code:
HTTP Error 404.4 - Not Found
The resource you are looking for does not have a handler associated with it.

I read this post before but it is not working also, please help me.

El Forum

[eluser]Fatih[/eluser]
I used the import config for IIS manager of Windows but the result is the same.