• Does anyone have the IIS 7.5 web.config rewrite code if you are not using the year/month in the URL string?

    My site is setup with

    https://www.mysite.com/blog/page url goes here

    If anyone has this type of setup or knows how to modify the suggested URL rewrite code below, I would be very grateful.

    <rule name="WP Super Cache" stopProcessing="true">
        <match url="^(\d{4})/(\d{2})/(.+?)/?$" ignoreCase="false" />
        <conditions>
          <add input="{REQUEST_METHOD}" negate="true" pattern="POST" ignoreCase="false" />
          <add input="{QUERY_STRING}" negate="true" pattern=".*=.*" ignoreCase="false" />
          <add input="{QUERY_STRING}" negate="true"
                    pattern=".*attachment_id=.*" ignoreCase="false" />
          <add input="{HTTP_COOKIE}" negate="true"
                   pattern="^.*(comment_author_|wordpress|wp-postpass_).*$" ignoreCase="false" />
          <add
            input="{DOCUMENT_ROOT}\wp-content\cache\supercache\{HTTP_HOST}\{R:1}\{R:2}\{R:3}\index.html"
            matchType="IsFile" />
        </conditions>
        <action type="Rewrite"
             url="wp-content/cache/supercache/{HTTP_HOST}/{R:1}/{R:2}/{R:3}/index.html" />
      </rule>
    
      <rule name="Wordpress Pretty Permalinks" patternSyntax="Wildcard">
        <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" />
      </rule>

    https://www.ads-software.com/plugins/wp-super-cache/

Viewing 1 replies (of 1 total)
  • Thread Starter jeffmace

    (@jeffmace)

    Anyone? Is there any pay support out there than knows how to do this or work with IIS to get this working properly?

Viewing 1 replies (of 1 total)
  • The topic ‘IIS URL Rewrite’ is closed to new replies.