Title: IIS URL Rewrite
Last modified: August 21, 2016

---

# IIS URL Rewrite

 *  [jeffmace](https://wordpress.org/support/users/jeffmace/)
 * (@jeffmace)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/iis-url-rewrite/)
 * 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
 * [http://www.mysite.com/blog/page](http://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>
       ```
   
 * [http://wordpress.org/plugins/wp-super-cache/](http://wordpress.org/plugins/wp-super-cache/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [jeffmace](https://wordpress.org/support/users/jeffmace/)
 * (@jeffmace)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/iis-url-rewrite/#post-4412744)
 * 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.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [jeffmace](https://wordpress.org/support/users/jeffmace/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/iis-url-rewrite/#post-4412744)
 * Status: not resolved