I wanted to contribute, because I had problems with myself. I use only IIS5.1 for development (not recommended!)
1- Make sure the config.php file has:
$config['index_page'] = '';
2- My application is not in the root folder, it is in localhost / CodeIgniter /. I updated config.php for:
$config['base_url'] = 'http://localhost/CodeIgniter/';
3- You need Mod-Rewrite features. This is built into most servers, but IIS5.1 requires a separate tool. I used: IIS Mod-Rewrite by micronovae. It is free if you use it on localhost
I put the following code (instead of CodeIgniter, put the folder name):
RewriteEngine on RewriteCond $0 !^/CodeIgniter/(css|js|swf|images|system|tools|themes|index\.php) [NC] RewriteRule ^/CodeIgniter/(.*)$ /CodeIgniter/index.php/$1 [L]
If your application is at the root, the code you should use will be simple:
RewriteEngine on RewriteCond $0 !^(css|js|swf|images|system|tools|themes|index\.php) [NC] RewriteRule ^(.*)$ index.php/$1 [L]
Hope this helps.
Salam morcos
source share