我尝试了很多...我没有使域重定向
301重定向到通配符URL
我有https://www.example.com/blog通配符-https://blog.example.com/
我需要将此域[[https://www.example.com/blog重定向到此一个https://blog.example.com/
/到https://blog.example.com/的博客
<rule name="Redirect blog" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="/blog$" />
</conditions>
<action type="Redirect" url="https://blog.example.com/" redirectType="Permanent"/>
</rule>
<rule name="Redirect blog" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{PATH_INFO}" pattern="/blog$" />
</conditions>
<action type="Redirect" url="https://blog.example.com/" redirectType="Permanent"/>
</rule>