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%’;
标签:bin,web,magento2,重定向,magento,后台,path,php,config From: https://www.cnblogs.com/chenkg/p/18103270