shopex 4.8 for iis 7 伪静态

2009/06/22  |  7:39 上午分类:IIS7-rewrite, shopex  |  标签:  |  1,803 views

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>
喜欢本文,那就收藏到: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

3条评论 关于 “shopex 4.8 for iis 7 伪静态”

  1. Maria 发表于: 六月 24th, 2009 6:00 上午

    Pretty nice post. I just found your blog and wanted to say
    that I’ve really liked reading your blog posts. Any way
    I’ll be subscribing to your blog and I hope you write again soon!

    [回复]

  2. William 发表于: 七月 10th, 2009 7:02 上午

    请问如何联络你?有问题想请教

    [回复]

    衣不如新 回复:

    mxfire#163.com

    [回复]


发表您的评论