I purchased ssl from godaddy but domain url redirection have issue

蓝咒 提交于 2019-12-25 11:49:08

问题


i dont know whats wrong with my settings .i am using opencart 2.3.0.2 .Enabled ssl from settings of my cms. when i run https:sharishari.com it works fine. i want when i or any one enter my domain name sharishari.com it should redirect to https:sharishari.com each time i have to write complete url with https to go on https. and second thing its view is non responsive and non functional when i write sharishari+ctrl Enter . here is my root config file i removed www from the domain and admin config file https://codeshare.io/2pAlLV i just shared the above part .db part excluded in sharing

Please i will be very thankful if somebody sort out my problem.best regards


回答1:


After enabling SSL from your open cart backed, first of all, you will have to update your config files for both catalog and admin. You will have to edit link as "https".

Apart from that, you will have to edit your links provided on header.tpl. Just find and replace all 'http' to 'https'. You can find header.tpl at catalog/view/theme/themename/common/header.tpl

Hope that helps.




回答2:


You need to change in both

config.php
admin/config.php

to https:

also go to your catalog/view/thene/YOURTHEME/common/header.tpl

And their all of your scripts, css files and so forth to https

And easy way to find them do a ctrl+f search on http and you will find the,

If you have any custom code like social media links, you need to change them to https aswell.




回答3:


OK you need to redirect to HTTPS (opencart does not do this when enabling SSL) and you need to edit your theme header file, see Innervisions comment

Opencart only switches to SSL on checkout, account, login, etc pages.



来源:https://stackoverflow.com/questions/42933764/i-purchased-ssl-from-godaddy-but-domain-url-redirection-have-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!