link CodeIgniter URL rewriting on IIS 7← Back

  • Download the IIS URL Rewriter module from Microsoft and install it on your IIS server.
  • Open IIS Manager and in your site you will now have an icon for “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’] = “”;


There are no comments

Post a comment