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’] = “”;
Comments
Akansha Yadav
2020-05-27
Hey
I have experience in running wordpress applications over IIS and it is very simple. After that I thought lets host the codeigniter application over IIS after that I found the error
Please find below link:
https://dipoletechi.com/blog-post/how-to-setup-codeigniter-application-on-iis/
Thanks