magento2 登录后台一直提示重定向

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%’;

  

posted on 2024-03-29 10:32  陈可  阅读(60)  评论(0)    收藏  举报

导航