Skip to content

Instantly share code, notes, and snippets.

@richjenks
Created December 13, 2014 08:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richjenks/6ba95e87ed351ead7033 to your computer and use it in GitHub Desktop.
Save richjenks/6ba95e87ed351ead7033 to your computer and use it in GitHub Desktop.
GetSimple fancy URLs on IIS Windows Server
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<rewrite>
<rules>
<rule name="GetSimple Fancy URLs" stopProcessing="true">
<match url="/?([A-Za-z0-9-_]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?id={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</location>
</configuration>
@richjenks
Copy link
Author

  • Fire-and-forget fancy URLs for GetSimple on IIS Windows Server
  • Works with child pages and default permalink structure %parent%/%slug/%
  • Doesn't affect subdirectories, so you can run applications beneath GS or even another instance of GS
  • To use, drop in GS files next to README.md

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