【问题标题】:wordpress on openshift custom domain "too many redirects" error, works on openshift default domainwordpress on openshift 自定义域“重定向过多”错误,适用于 openshift 默认域
【发布时间】:2015-03-26 12:35:15
【问题描述】:

wordpress 在 openshift 自定义域“重定向过多”错误,适用于 openshift 默认域

自定义域上的 curl 请求不起作用

curl -vvv http://www.hobbyhap.com/h

            Hostname was NOT found in DNS cache
            *   Trying 54.204.79.83...
            * Connected to www.hobbyhap.com (54.204.79.83) port 80 (#0)
            > GET /h HTTP/1.1
            > User-Agent: curl/7.35.0
            > Host: www.hobbyhap.com
            > Accept: */*
            > 
            < HTTP/1.1 301 Moved Permanently
            < Date: Tue, 27 Jan 2015 18:05:15 GMT
            * Server Apache/2.2.15 (Red Hat) is not blacklisted
            < Server: Apache/2.2.15 (Red Hat)
            < Location: http://www.hobbyhap.com/h/
            < Content-Length: 317
            < Content-Type: text/html; charset=iso-8859-1
            < Cache-control: private
            < Set-Cookie: GEAR=local-54c70ac64382ec8161000031; path=/
            < Accept-Ranges: none
            < 
            <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
            <html><head>
            <title>301 Moved Permanently</title>
            </head><body>
            <h1>Moved Permanently</h1>
            <p>The document has moved <a href="http://www.hobbyhap.com/h/">here</a>.</p>
            <hr>
            <address>Apache/2.2.15 (Red Hat) Server at www.hobbyhap.com Port 80</address>
            </body></html>
            * Connection #0 to host www.hobbyhap.com left intact

openshift 域上的 curl 请求有效

curl -vvv http://hhapp-hobbyhap.rhcloud.com/h/

【问题讨论】:

  • 您是否更改了 WordPress 安装中的名称以在 www.hobbyhap.com 上收听?
  • 您的意思是用 www.hobbyhap.com 更新站点和 site_meta 表?
  • 是的,我已经用 www.hobbyhap.com 更新了 wp 的 site 和 site_meta 表

标签: php wordpress redirect openshift


【解决方案1】:

我用自定义域更新博客、选项、站点和站点元表,它开始工作

【讨论】:

    猜你喜欢
    • 2013-05-13
    • 2014-11-27
    • 1970-01-01
    • 1970-01-01
    • 2014-05-22
    • 1970-01-01
    • 1970-01-01
    • 2013-03-28
    • 1970-01-01
    相关资源
    最近更新 更多