CSS for https addresses

looking for some help with the images shown in the stylesheet. I have no problems with them from insecure places inside the site, but only with https. The stylesheet loads fine and displays everything correctly, except for the images.

example:

body {
margin: 0;
padding: 0;
background: url(/img/background_tile.gif) top left repeat-x;
text-align: center;
background-color: #fff;
}

All my css files and other image paths inside the code use relative URLs for the images. How can I make sure that they all work fine without hard coding my image paths using https or http? I want the code to work fine with http and https.

thank

+3
source share
1 answer

I would open FireBug, look at the Net tab and see the HTTP status code for the image.

404, httpd.conf ( , Apache), , DocumentRoot 443.

, , , 443 DocumentRoot, . Firebug example

0

Source: https://habr.com/ru/post/1740475/


All Articles