GetSimple Support Forum
QUESTION How to deliver assets from sub-domain - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: QUESTION How to deliver assets from sub-domain (/showthread.php?tid=10314)



How to deliver assets from sub-domain - Lucianp - 2018-01-04

I am trying to move my site assets (css, images,js) to a sub-domain to improve page load speed.
the site is small and local therefore unnecessary to use a CDN.

I set up a sub-domain static.example.com with folders css, img and js.

I changed my link from 

Code:
<link rel="stylesheet" href="<?php get_theme_url(); ?>/css/styles.css">

to 

Code:
<link rel="stylesheet" href="http://static.example.com/css/styles.css">


but the pages are not seeing the css.

clicking on the link from the source code shows the CSS file, so the link is good, so what am I missing?

thanks


RE: How to deliver assets from sub-domain - Lucianp - 2018-01-04

found the problem, I was linking http sub-domain to https site.