代码如下:

<?xml version="1.0" encoding="UTF-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.5"/>
    <httpRuntime targetFramework="4.5"/>
  </system.web>
  <system.webServer>
    <rewrite>
      <rules><rule name="Main Rule" stopProcessing="true"><match url=".*"/><conditions logicalGrouping="MatchAll"><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/></conditions><action type="Rewrite" url="index.php"/></rule>
				<rule name="wordpress" 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></rules>
    </rewrite>
  </system.webServer>
</configuration>

本文地址:wordpress rewrite iis7(wordpress在iis7下的重定向配置)  

相关文章:

  • 2021-10-24
  • 2022-01-22
  • 2021-09-10
  • 2021-11-21
  • 2021-05-08
  • 2022-01-14
猜你喜欢
  • 2021-06-03
  • 2022-02-01
  • 2022-12-23
  • 2021-10-17
  • 2021-08-09
  • 2021-08-01
  • 2022-01-22
相关资源
相似解决方案