【问题标题】:Wordpress Multisite creating a page in a subdomain site redirects to the main siteWordpress Multisite 在子域站点中创建页面重定向到主站点
【发布时间】:2014-12-01 07:55:25
【问题描述】:

每次我在我的子域网站上创建一个新页面,然后我查看该页面时,我都会被重定向到我的主站点的页面,并且子域 url 会附加在我的主站点 url 中。

举个例子。我的主站点是http://example.com,我的子域站点是http://another.example.com

当我在 http://another.example.com 创建一个新页面时,说带有 sample-page slug 的示例页面,当我查看该页面时,我被重定向到

http://example.com/http:/another.example.com/sample-page/

这是怎么回事?

您的帮助将不胜感激!

谢谢!

【问题讨论】:

    标签: wordpress wpmu


    【解决方案1】:

    根据问题,我们需要一些详细信息,但如果您的服务器上正在运行 apache,您可以尝试以下链接规则用于 htacccess 重写规则

    http://codex.wordpress.org/htaccess

    如果你有nginx你可以看看这个(没有htaccess文件你必须在locations.conf或nginx.conf中添加规则)

    http://codex.wordpress.org/Nginx

    如果您需要更多帮助,

    把你的详细资料发给我,我会做的。

    谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-08
      • 1970-01-01
      • 2021-01-10
      • 2023-01-20
      • 2014-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多