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


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:

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

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


And here it is the error summary.

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

I used the import config for IIS manager of Windows but the result is the same.