OpenCart SSL:如何使用HTTPS加载所有页面
您已为您的OpenCart网站启用了SSL证书,但是它从某些页面中消失了? Apache服务器如果您的OpenCart存储在Apache服务器上运行,则本教程有效。 您可以采取以下措施来确保在线商店的每一页安全,并确保在线购物者放心浏览您的网站。.
步骤 1
在 cPanel 中使用您最喜爱的 FTP 客户或文件管理器,并编辑您的 .htaccessnfile.
Step 2
Copy and Paste these 3 lines of code in the .htaccess
file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Save & close!
Step 3
Edit your config.php
file in the OpenCart root (underneath the .htaccess file in the above screenshot).
Under the // HTTPS
line, change the protocol from http
to https
.
Save & close!
Step 4
Repeat the same for the config.php
file in your admin folder.
Open the config.php
here:
Again, underneath the // HTTPS
line change both http
protocols to https
.
Save & close!
Congratulations!
Now go back to your OpenCart website and go through the pages.
You will see the SSL certificate active all around your website keeping each page secure.
Customers will now feel they’re browsing and shopping securely from your OpenCart store.
Summary
Share this tutorial if it helped you and subscribe to our blog for weekly updates with more helpful guides like this one.
2 评论(s)
Firefox,Chrome和几乎所有浏览器中的混合内容阻止如何处理?
如果有帮助,请分享本教程,并订阅我们的博客以每周更新,并提供诸如此类的更有用的指南
您好,谢谢您的解释,但是,当我尝试在主页上将产品添加到购物车时,出现此错误“未定义运输,未定义运输。请问如何解决此问题?
感谢您与我们联系。 听起来像是一个非常具体的问题,是由您商店中的某物引起的。 不看一眼就无法确定它是什么。 如果需要,您可以在这里与OpenCart专用支持联系:https://dedicated.opencart.com
发表评论