Return to Snippet

Revision: 50936
at September 9, 2011 08:31 by batfan

Initial Code
        <rule name="CanonicalHostNameRule2" stopProcessing="true">
          <match url="(.*)" />
              <add input="{HTTP_HOST}" pattern="^domain\.com$" />
            <action type="Redirect" url="{R:1}" />
        <rule name="CanonicalHostNameRule1" stopProcessing="true">
          <match url="^(\w*/)?index\.php" />
	      <add input="{HTTP_HOST}" pattern="domain\.com$" />
            <action type="Redirect" url="{R:1}" />
        <rule name="wordpress" patternSyntax="Wildcard">
	  <match url="*" />
	      <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
	      <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
	    <action type="Rewrite" url="index.php" />

Initial URL

Initial Description
For use with a WordPress install, on a Windows server.

Initial Title
Default WordPress web.config file, with permalinks

Initial Tags

Initial Language