【问题标题】:when I tried to open the dashboard of the wordpress multisite network admin (child theme) I am getting 404 error当我尝试打开 wordpress 多站点网络管理员(子主题)的仪表板时,出现 404 错误
【发布时间】:2013-06-14 16:53:14
【问题描述】:

我刚刚在我的子域上安装了 wordpress 多站点,它向我显示了网络站点,但是当我尝试打开网络管理员(子主题)的仪表板时,我收到 404 错误,当我打开 前端然后页面显示没有css样式。

【问题讨论】:

    标签: wordpress


    【解决方案1】:

    IIS 服务器中没有 .htaccess 文件,我有一个 web.config 文件,它是在安装多站点时由 wordpress 自身生成的。

    wordpress生成的web.config

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="WordPress Rule 1" stopProcessing="true">
                        <match url="^index\.php$" ignoreCase="false" />
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 2" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="{R:1}wp-admin/" redirectType="Permanent" />
                    </rule>
                    <rule name="WordPress Rule 3" stopProcessing="true">
                        <match url="^" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAny">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                        </conditions>
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 4" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="{R:1}" />
                    </rule>
                    <rule name="WordPress Rule 5" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>
                    <rule name="WordPress Rule 6" stopProcessing="true">
                        <match url="." ignoreCase="false" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-01-02
      • 2015-09-19
      • 2019-10-16
      • 1970-01-01
      • 2012-08-09
      • 2019-11-05
      • 1970-01-01
      相关资源
      最近更新 更多