Magento redirection problem after moving

后端 未结 13 927
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 11:02

I\'ve moved my Magento to another server with another domain name, now it keeps linking me back to the old domain. All files and the entire database has been searched&re

13条回答
  •  甜味超标
    2020-12-05 11:53

    This is probably due to the old base url stored in the database table core_config_data. You have to update that values to point to the new domain.

    You can update with the following update queries

    UPDATE core_config_data SET value="http://www.newdomain.com/" 
    WHERE path="web/unsecure/base_url"
    

    to update secure base url

     UPDATE core_config_data SET value="https://www.newdomain.com/" 
     WHERE path="web/secure/base_url"
    

提交回复
热议问题