﻿{"id":436,"date":"2023-10-20T16:28:43","date_gmt":"2023-10-20T08:28:43","guid":{"rendered":"https:\/\/blog.yyspark.com\/?p=436"},"modified":"2023-10-20T17:25:19","modified_gmt":"2023-10-20T09:25:19","slug":"iis-rewrite","status":"publish","type":"post","link":"https:\/\/airlive.online\/index.php\/2023\/10\/20\/iis-rewrite\/","title":{"rendered":"IIS Rewrite-http_toHttps-Add_WWW"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" ?>\n&lt;rules>\n &lt;clear\/>\n &lt;rule name=\"Add_WWW\" stopProcessing=\"true\">\n\t&lt;match url=\"^(.*)$\"\/>\n\t&lt;conditions>\n\t\t&lt;add input=\"{HTTP_HOST}\" pattern=\"^(?!www.)(.*)$\"\/>\n\t&lt;\/conditions>\n\t&lt;action type=\"Redirect\" url=\"http:\/\/www.{C:0}{PATH_INFO}\" redirectType=\"Permanent\"\/>\n &lt;\/rule>\n &lt;rule name=\"http_toHttps\" stopProcessing=\"true\">\n\t&lt;match url=\"(.*)\"\/>\n\t&lt;conditions>\n\t\t&lt;add input=\"{HTTPS}\" pattern=\"off\" ignoreCase=\"true\"\/>\n\t&lt;\/conditions>\n\t&lt;action type=\"Redirect\" redirectType=\"Permanent\" url=\"https:\/\/{HTTP_HOST}\/{R:1}\"\/>\n &lt;\/rule>\n &lt;rule name=\"My_proxy\">\n\t&lt;match url=\"^(.*)\"\/>\n\t&lt;conditions logicalGrouping=\"MatchAny\">\n\t\t&lt;add input=\"{HTTP_HOST}\" pattern=\"^www.yyspark.com\"\/>\n\t&lt;\/conditions>\n\t&lt;action type=\"Rewrite\" url=\"https:\/\/nas.yyspark.com:88\/{R:1}\"\/>\n &lt;\/rule>\n&lt;\/rules><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":5,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/436\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}