【发布时间】:2017-05-27 19:34:59
【问题描述】:
我想安装 Prestashop 站点的本地副本,但是当我进入本地域时,它不断将我重定向到旧域。
我下载了文件,下载并导入了数据库,更新了指向本地数据库的设置,等等。
我更新了ps_configuration 表以将PS_SHOP_DOMAIN 和PS_SHOP_DOMAIN_SSL 设置为新的本地域并禁用(设置为0)此表中的所有缓存参数。
我编辑了.htaccess,所以对旧域的所有引用都被新域更改,并删除了浏览器中的所有 cookie 和缓存。简而言之,我的问题与Prestashop redirects to old domain after changing it in Database 完全相同,但它的解决方案对我不起作用。另外,我重新启动了 Apache,还是一样。 curl 或本地站点显示此信息:
curl -v example.me
* Rebuilt URL to: example.me/
* Trying 127.0.0.1...
* Connected to example.me (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: example.me
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Thu, 12 Jan 2017 15:40:56 GMT
< Server: Apache/2.4.18 (Ubuntu)
< Vary: Host
< location: http://example.com/
< Content-Length: 0
< Content-Type: text/html; charset=utf-8
<
* Connection #0 to host example.me left intact
有什么想法吗? 谢谢
【问题讨论】:
标签: redirect prestashop