D
D
Denis Ruchiev2017-01-24 11:17:41
CodeIgniter
Denis Ruchiev, 2017-01-24 11:17:41

The relative path is substituted http?

For example, the site http://domain.rucontains relative paths of the form

<link rel="stylesheet" href="/style/listings/css/style.css" type="text/css">

logically, if you follow the link, https://domain.ru/then the styles should be loaded along the path, https://domain.ru/style/listings/css/style.cssbut the browser stubbornly prescribes http://domain.ru/style/listings/css/style.csswhat causes the Mixed Content error, while normal paths are prescribed for js .. what could be the matter? already broke my head, nothing helps

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Georg, 2017-01-24
@denis_bardak

but better like this:
well, either use it everywhere with https

L
Lander, 2017-01-24
@usdglander

<link rel="stylesheet" href="./style/listings/css/style.css" type="text/css">

So try

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question