我想安裝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'所具有的。順便說一句,我不能訪問面板,所以我直接在數據庫中更改 –