【问题标题】:Site is redirecting from http:// to http://http// (no colon)站点从 http:// 重定向到 http://http//(无冒号)
【发布时间】:2012-11-19 06:52:33
【问题描述】:

我们今晚正在转移服务器,我们开始了这个过程。新的 DNS 已解析,一切都已解决,但如果您输入站点名称 localreviewengine.com。它踢到http//localreviewengine.com(真的,http://http//localreviewengine.com)。

什么会导致这种情况?这是一个wordpress安装,并且数据库中的Sitename和Home设置正确,CPanel中没有重定向,htaccess看起来不错?

编辑:看起来localreviewengine.com/readme.html 有效..?

【问题讨论】:

    标签: wordpress .htaccess http redirect cpanel


    【解决方案1】:

    查看此站点的响应标头会使黑暗变得有点光明:

    ~ # curl -I "http://localreviewengine.com/"
    HTTP/1.1 301 Moved Permanently
    Date: Sat, 01 Dec 2012 01:57:11 GMT
    Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    X-Powered-By: PHP/5.2.17
    Location: http://http://localreviewengine.com
    Content-Type: text/html
    

    如您所见,网络服务器正在重定向到http://http://localreviewengine.com 这是您的配置中的拼写错误/不正确的协议前缀。

    检查您的 apache 配置或(很可能)您的文档根 .htaccess

    您是否为移动过程添加了任何重定向/重写?例如we're moving our site, come back when the 5.000 machines are finally up and running again? (hopefully)

    【讨论】:

    • 新服务器和 php 已经过时 tss tss,这个服务器管理员 :)
    • 问题解决了吗?如果您仍然需要帮助,请发布您的配置或最终的 htaccess 文件
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-23
    • 2021-07-13
    • 1970-01-01
    • 2021-05-11
    • 1970-01-01
    • 2015-12-09
    相关资源
    最近更新 更多