Skip to content

Instantly share code, notes, and snippets.

@iamfaisal
Created August 9, 2015 11:38
Show Gist options
  • Save iamfaisal/d7bbfb3d8161595f4ab6 to your computer and use it in GitHub Desktop.
Save iamfaisal/d7bbfb3d8161595f4ab6 to your computer and use it in GitHub Desktop.
Web.config for Codeigniter 3.0
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rule" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
@Chienle
Copy link

Chienle commented Aug 18, 2019

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment