0

有人能帮我一下吗 ?

将 magento 2.0.2 文件上传到实时服务器并将数据库导入 PHPMYAdmin 后,现在索引会自动重定向到已传输文件的本地主机。我知道它需要更改 URL 路径但没有找到正确的位置,在 magento 1.9 中更改数据库表(core_config_data 表)中的路径,但如何更改 magento 2.0.2 中的正确路径?

您的帮助将不胜感激:) 谢谢

4

1 回答 1

3

我知道你修复了它,但这里是我的解决方案,也许它可以帮助其他人:
当你从本地生活时,你切换你的域并需要告诉 Magento。一个简单的方法是在 CLI 上:

# http:// or https://, and a trailing slash /.
./bin/magento setup:store-config:set --base-url="http://your-domain.com/"
./bin/magento setup:store-config:set --base-url-secure="https://your-domain.com/"

# clear cache
./bin/magento cache:flush
于 2016-12-21T05:14:48.007 回答