Codeigniter IIS7 Web.config


/ Published in: Other
Save to your folder(s)

This will allow pretty url for codeigniter running under IIS7


Copy this code and paste it in your HTML
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="Index">
  7. <match url="^(.*)$" />
  8. <conditions>
  9. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  10. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  11. </conditions>
  12. <action type="Rewrite" url="index.php/{R:1}" />
  13. </rule>
  14. </rules>
  15. </rewrite>
  16. </system.webServer>
  17. </configuration>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.