Welcome Guest, Not a member yet? Register   Sign In
Windows IIS7 htacess vs web.config
#1

[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.
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB