Seemingly simple redirect in IIS using web.config file

后端 未结 1 1010
粉色の甜心
粉色の甜心 2021-01-19 03:36

I\'ve restructured a WordPress site that\'s hosted on a Windows server, so I\'m trying to redirect with a web.config file. I\'ve tried dozens of variations from examples and

相关标签:
1条回答
  • 2021-01-19 04:42

    Try this one:

    <rewrite>
      <rules>
        <rule name="WP Redirect" stopProcessing="true">
          <match url="^wp/(.*)$" ignoreCase="false" />
          <action type="Redirect" redirectType="Permanent" url="http://www.mysite.com/{R:1}" />
        </rule>
      </rules>
    </rewrite>
    
    0 讨论(0)
提交回复
热议问题