php 如何从 magento 数据库的管理面板中删除 https,因为出现 403 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23167400/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to remove https from admin panel in magento database as getting 403 error
提问by user3131633
I have wrongly activate secure web config and written 'https' where it is 'http'. I have checked database table : core_config_data. web/secure/use_in_frontend and web/secure/use_in_adminhtml is '0' and web/secure/offloader_header is SSL_OFFLOADED.
我错误地激活了安全网络配置,并在它是“http”的地方写了“https”。我检查了数据库表:core_config_data。web/secure/use_in_frontend 和 web/secure/use_in_adminhtml 为“0”,而 web/secure/offloader_header 为 SSL_OFFLOADED。
Also remove cache and session data. Still I didn't get any solution.
同时删除缓存和会话数据。我仍然没有得到任何解决方案。
Please do the needfull as admin panel is redirecting to 'https' instead of 'http'
请执行必要的操作,因为管理面板正在重定向到“https”而不是“http”
回答by mrumair.com
Reset “Use Secure in Front End or Admin” in Database – Magento
在数据库中重置“在前端或管理员中使用安全” – Magento
I ran into an issue this week where I switched on SSL on a development site and then realized the SSL cert was not installed correctly. This is a big issue in Magento because there is no way to get back to the admin to switch it back off.
本周我遇到了一个问题,我在开发站点上打开了 SSL,然后意识到 SSL 证书没有正确安装。这是 Magento 中的一个大问题,因为无法返回管理员将其关闭。
If this ever happens do the following to switch back:
如果发生这种情况,请执行以下操作以切换回来:
- Open up your admin panel (cPanel or other)
- Go to phpMyAdmin (if MySql)
- Find your Magento Database
- Find table “core_config_data”
- Look for the columns “web/secure/use_in_frontend” and “web/secure/use_in_adminhtml”
- Edit both values, make them equal to “0”
- 打开您的管理面板(cPanel 或其他)
- 转到 phpMyAdmin(如果是 MySql)
- 查找您的 Magento 数据库
- 查找表“core_config_data”
- 查找列“web/secure/use_in_frontend”和“web/secure/use_in_adminhtml”
- 编辑两个值,使它们等于“0”
After this is done you will be back in action.
完成此操作后,您将恢复活动。
- See more at: https://mrumair.com
- 查看更多信息:https: //mrumair.com
回答by Gus
AFter making the above changes delete your website cache, Either FTP to your public directory or use your file manager from your hosting agreement and delete the contents of the /var/cache folder. I had this exact issue and as soon as i deleted my cache it resolved the issue.
进行上述更改后,删除您的网站缓存,通过 FTP 到您的公共目录或使用您的托管协议中的文件管理器并删除 /var/cache 文件夹的内容。我遇到了这个确切的问题,一旦我删除了缓存,它就解决了这个问题。
回答by Gerard de Visser
Check the value of web/secure/base_url path in core_config_data.
检查 core_config_data 中 web/secure/base_url 路径的值。
You can change this from https to http.
您可以将其从 https 更改为 http。