{"id":4412450,"date":"2013-12-14T15:10:12","date_gmt":"2013-12-14T15:10:12","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/iis-url-rewrite\/"},"modified":"2016-08-21T13:30:51","modified_gmt":"2016-08-21T13:30:51","slug":"iis-url-rewrite","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/iis-url-rewrite\/","title":{"rendered":"IIS URL Rewrite"},"content":{"rendered":"<p>Does anyone have the IIS 7.5 web.config rewrite code if you are not using the  year\/month in the URL string?<\/p>\n<p>My site is setup with<\/p>\n<p>http:\/\/www.mysite.com\/blog\/page url goes here<\/p>\n<p>If anyone has this type of setup or knows how to modify the suggested URL rewrite code below, I would be very grateful.<\/p>\n<pre><code>&lt;rule name=&quot;WP Super Cache&quot; stopProcessing=&quot;true&quot;&gt;\n    &lt;match url=&quot;^(\\d{4})\/(\\d{2})\/(.+?)\/?$&quot; ignoreCase=&quot;false&quot; \/&gt;\n    &lt;conditions&gt;\n      &lt;add input=&quot;{REQUEST_METHOD}&quot; negate=&quot;true&quot; pattern=&quot;POST&quot; ignoreCase=&quot;false&quot; \/&gt;\n      &lt;add input=&quot;{QUERY_STRING}&quot; negate=&quot;true&quot; pattern=&quot;.*=.*&quot; ignoreCase=&quot;false&quot; \/&gt;\n      &lt;add input=&quot;{QUERY_STRING}&quot; negate=&quot;true&quot;\n                pattern=&quot;.*attachment_id=.*&quot; ignoreCase=&quot;false&quot; \/&gt;\n      &lt;add input=&quot;{HTTP_COOKIE}&quot; negate=&quot;true&quot;\n               pattern=&quot;^.*(comment_author_|wordpress|wp-postpass_).*$&quot; ignoreCase=&quot;false&quot; \/&gt;\n      &lt;add\n        input=&quot;{DOCUMENT_ROOT}\\wp-content\\cache\\supercache\\{HTTP_HOST}\\{R:1}\\{R:2}\\{R:3}\\index.html&quot;\n        matchType=&quot;IsFile&quot; \/&gt;\n    &lt;\/conditions&gt;\n    &lt;action type=&quot;Rewrite&quot;\n         url=&quot;wp-content\/cache\/supercache\/{HTTP_HOST}\/{R:1}\/{R:2}\/{R:3}\/index.html&quot; \/&gt;\n  &lt;\/rule&gt;\n\n  &lt;rule name=&quot;Wordpress Pretty Permalinks&quot; patternSyntax=&quot;Wildcard&quot;&gt;\n    &lt;match url=&quot;*&quot; \/&gt;\n    &lt;conditions&gt;\n      &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; \/&gt;\n      &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; \/&gt;\n    &lt;\/conditions&gt;\n    &lt;action type=&quot;Rewrite&quot; url=&quot;index.php&quot; \/&gt;\n  &lt;\/rule&gt;<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/wp-super-cache\/<\/p>\n","protected":false},"template":"","class_list":["post-4412450","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4412450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4412450\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4412450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}