您当前的位置:易学堂 > EM&TP

Emlog的IIS7伪静态规则web.config

时间:2019-02-10 20:46:10

百度搜了下有很多Emog在IIS7下的伪静态web.config设置,代码很多都不一样,分享一下本站目前用的吧。

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
			<rule name="amuker" 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>