Wednesday, May 30, 2012


Below configs helped me fixing issue with pages other than homepage which was giving a 404 error because of url rewrite issue.

Make sure URL Rewrite module is installed on IIS.

Open IIS Manager -> go to your site -> “URL Rewrite” so double-click it.

In the top-right click “Add Rule(s)”

Select “Blank Rule” under “Inbound Rules” and click OK.

Enter “Strip index.php” in the Rule Name text box.

Enter “^(.*)$” into the pattern text box.

Expand Conditions and add a rule each for “Is not a file” and “Is not a directory”
Under Actions, in the Rewrite URL text box enter “index.php/{R:1}” and untick “Append query string”
Click “Apply”

Edit your CI system/application/config/config.php file and set   $config[‘index_page’] = “”;

Good Luck :)

1 comment:

Unknown said...

Thanks for sharing this knowledge.. You are a life savior..