我想安装Prestashop站点的本地副本,但是当我输入本地域时,它会将我重定向到旧域。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 -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
任何想法? 谢谢
虚拟主机被配置为侦听'example.me',这就是'domain'和'domain_ssl'所具有的。顺便说一句,我不能访问面板,所以我直接在数据库中更改 –