shopex 4.8 for iis 7 伪静态
shopex 4.84 用在iis 7 url rewrite module 下的规则文件
将下列代码加入到web目录下的web.config文件的<system.webServer>之后即可。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <rewrite>
<rules>
<rule name="disableDownloadThemeHtml">
<match url="^themes/.*\.(html|xml)$" ignoreCase="false" />
<action type="CustomResponse" url="/" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="urlRewrite">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" pattern="\.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="index.php?{R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite> |


















衣不如新 回复:
七月 10th, 2009 at 10:23 上午
mxfire#163.com
[回复]