【问题标题】:How to run WordPress from other location on the same domain如何从同一域的其他位置运行 WordPress
【发布时间】:2011-06-11 16:49:26
【问题描述】:

您好,我有一个在 WordPress 中运行的域,

WordPress 安装的路径是/subdomain/mywordpress/,我可以在mywordpress.mysite.com 中访问这些,现在我希望在我的主域上加载索引页面,即

当我转到mysite.com 时,我想加载 WordPress 的索引页面,我知道如果可能的话,链接总是指向mywordpress.mysite.com,但这就是我需要知道的。因为我不想删除mywordpress.mysite.com。我只需要以相同的设计在我的主站点上显示所有帖子(这就是为什么我更喜欢加载 wordpress 的索引文件)

【问题讨论】:

    标签: wordpress wordpress-theming


    【解决方案1】:

    .htaccess 中的简单 mod_rewrite 规则如何重定向到 mywordpress.mysite.com?

    这应该可行:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule . /subdomain/mywordpress/index.php [L]
    

    【讨论】:

      【解决方案2】:

      您应该查看 Codex 中的这篇文章:Giving WordPress Its Own Directory。它准确地解决了您所描述的情况。

      【讨论】:

        猜你喜欢
        • 2012-09-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-07-30
        • 2023-03-27
        • 2011-03-23
        • 1970-01-01
        相关资源
        最近更新 更多