感谢你的到来
一起学习进步

magento2迁移后打开后台一直提示重定向,有时前台可以打开

网上那些缓存试、换个浏览器了都没用,都知道使用无痕,第一条很重要,网上查询别人让设置null 捣鼓一晚上没成功

php bin/magento config:set web/cookie/cookie_domain yt.w3cwang.com
php bin/magento config:set web/unsecure/base_url http://yt.w3cwang.com/   这个http
php bin/magento config:set web/secure/base_url https://yt.w3cwang.com/     这个是https
php bin/magento config:set web/secure/use_in_frontend 1
php bin/magento config:set web/secure/use_in_adminhtml 1
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush

这个设置为空 null

SELECT * FROM core_config_data WHERE path = “web/cookie/cookie_path”;

以上还不行 把配置表这些value都改成 1

 

SELECT * from core_config_data WHERE path = ‘web/cookie/cookie_domain’;
SELECT * from core_config_data WHERE path = ‘web/cookie/cookie_httponly’;
SELECT * from core_config_data WHERE path = ‘web/unsecure/base_url’;
SELECT * from core_config_data WHERE path = ‘web/secure/enable_upgrade_insecure’;
SELECT * from core_config_data WHERE path = ‘web/secure/use_in_adminhtml’;
SELECT * from core_config_data WHERE path = ‘web/secure/use_in_frontend’;
SELECT * FROM core_config_data where path like ‘%web/secure/use_in_adminhtml%’;

 

 

赞(0) 打赏
未经允许不得转载:IT起义 » magento2迁移后打开后台一直提示重定向,有时前台可以打开
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏