【问题标题】:Redirect without HTTP doesnt work没有 HTTP 的重定向不起作用
【发布时间】:2011-10-08 11:52:38
【问题描述】:

我已经安装了 MediaWiki,但一个链接消失了,将我重定向到“http://wiki.website.com/mw-config/index.php”。问题是:我去'http://mw-config/index.php'。这怎么可能?

谢谢!

【问题讨论】:

标签: url redirect installation mediawiki


【解决方案1】:

链接很可能被写为href="//mw-config/index.php",这将导致您看到的行为。为什么的问题可能与您的配置有关(与基本路径有关,如果这是原因的话),但如果不了解更多信息,很难确切地说出是什么。

【讨论】:

  • 谢谢,我已将相同的代码粘贴到我的本地主机中。如果我查看链接 localhost 的源代码显示:Please <a href="/wiki.website.com/mw-config/index.php"> set up the wiki</a> first. 而我的 live domain 显示:Please <a href="\/mw-config/index.php"> set up the wiki</a> first. 很奇怪。这怎么可能?
猜你喜欢
  • 2014-03-10
  • 2018-06-11
  • 2015-07-28
  • 1970-01-01
  • 2019-02-12
  • 2018-05-02
  • 2016-04-12
  • 2022-01-14
  • 2021-04-15
相关资源
最近更新 更多