如何将web.config与两个域一起使用

时间:2014-01-15 17:25:35

标签: web-config

我有这个cenario:

  1. 在我的主要域名中,我的博客是永久链接wordpress
  2. 在文件夹/ xyz中我有另一个域名abc.com.br指向。
  3. 如何为两者构建规则。

    这是我的实际web.config。只能使用博客。

    <configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="wordpress" patternSyntax="Wildcard"  stopProcessing="true">
                    <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>
    

0 个答案:

没有答案
相关问题