Well, you could
hardcode your Theme
header.tpl file Links to
https,
to so make sure, that they will be linked correctly.
And you could also link them COOKIEFREE, by example:
https:// yourhost.com/...
if your 'regular' Site is '.htaccess - configured' to be used like this:
https:// www. yourhost.com/..., to get even better GTMETRIX Results .
You then only need to add this into your
.htaccess file,
in the upper part of that file, before:
Code: Select all
# SEO URL Settings
RewriteEngine On
Code: Select all
<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
to also make
Fontawesome work with both Settings.
You then only have to make sure, NOT to have any VqMods/OcMods installed,
eventually looking for a 'default' - linked 'Script' or 'Style', in the header.tpl file,
to add it's own content, before or after such a link, or then change the content
of such an Extension, to 'match' the new linking. Just to have this mentioned too.
Good Luck!
Ernie
Code: Select all
<link href="https://yourhost.com/shop/catalog/view/theme/default/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<link href="https://yourhost.com/shop/catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<?php foreach ($styles as $style) { ?>
<link href="https://yourhost.com/shop/<?php echo str_replace('view/javascript', 'view/javascript', $style['href']); ?>" type="text/css" rel="<?php echo $style['rel']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script src="https://yourhost.com/shop/catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<?php foreach ($scripts as $script) { ?>
<script src="https://yourhost.com/shop/<?php echo str_replace('view/javascript', 'view/javascript', $script); ?>" type="text/javascript"></script>
<?php } ?>