Skip to content

Instantly share code, notes, and snippets.

@wmandai
Last active August 11, 2023 06:24
Show Gist options
  • Save wmandai/d28cc45f10a19eec0fcb to your computer and use it in GitHub Desktop.
Save wmandai/d28cc45f10a19eec0fcb to your computer and use it in GitHub Desktop.
IIS web.config for codeigniter
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Index">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
@wmandai
Copy link
Author

wmandai commented Feb 25, 2015

Godaddy users

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L]
RewriteRule ^index.php/(.*)$ [L]

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