D
D
dvoin2017-03-13 12:51:48
opencart
dvoin, 2017-03-13 12:51:48

Switching to SSL opencart. CNC problem. How to fix?

Hello! I decided to transfer OpenCart to ssl from letsencrypt, but there were problems. In config.php and /admin/config.php I changed from http to https, then enabled ssl support in the settings. Everything more or less turned out, but there is one BUT
. I have the CNC configured and let's say there is a category /bean-boozled/, that is, for example jbcandy.ru/bean-boozled/.
Pages have style paths, for example:

<script src="catalog/view/theme/theme654/js/jquery.ui.totop.js">

In the version of the http protocol - everything is fine and opens, there are no problems.
BUT IF OPEN IN HTTPS PROTOCOL, then the path of the file changes to
/bean-boozled/catalog/view/theme/theme654/js/jquery.ui.totop.js
, and the entry in html looks like this
<script src="catalog/view/theme/theme654/js/jquery.ui.totop.js">
, but clicking on the link in the inspector opens the file along the path
/bean-boozled/catalog/view/theme/theme654/js/jquery.ui.totop.js.

The question is what am I doing wrong? If you put a slash at the beginning of the path, it helps, BUT there are a lot of these paths, given that all modules separately insert their files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2017-03-19
@amfetamine

give the normal base tag to the template and everything will be ok

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question