ssl certificate affect css,image, js in kentico.

ranjith kumar asked on September 3, 2016 09:21

I just enabled ssl in Kentico cms 8. and trying to load site with https instead of http. But all css and js is not woring. While with http it works properly. but while https it not working.Anybody Kindly help me..?

Correct Answer

Brenden Kehren answered on September 4, 2016 02:04

In addition to Virgil's response, I'd add that if you're referencing any external resources via HTTP to remove that and simply use //. For instance:


<link href="http//,400,300&amp;subset=latin,latin-ext" rel="stylesheet" type="text/css">

Would become THIS:

<link href="//,400,300&amp;subset=latin,latin-ext" rel="stylesheet" type="text/css">
1 votesVote for this answer Unmark Correct answer

Recent Answers

Virgil Carroll answered on September 3, 2016 18:13


The most likely cause is you are using full URL to retrieve your css & js files (or inside the files) that are trying to use the http protocol vs the https protocol. This will cause a violation and cause things not to load. You need to either change your URL references to relative or change your URL references to SSL and that should take care of the issue.

0 votesVote for this answer Mark as a Correct answer

ranjith kumar answered on September 5, 2016 07:52

Thanks to Mr.Virgil Carroll and Mr.Brenden Kehren. I need small help. How to change url in below mention asp code as per ssl certificate.This is root.master page

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="root.master.cs" Inherits="CMSTemplates_WEBSWORK_root" %>

<%@ Register Assembly="CMS.Controls" Namespace="CMS.Controls" TagPrefix="cc1" %> <%@ Register TagPrefix="cms" TagName="EditableText" Src="~/CMSWebParts/Text/editabletext.ascx" %> <%@ Register Src="~/CMSWebParts/General/CSSStyleSelector.ascx" TagName="CSSStyleSelector" TagPrefix="cms" %> <%@ Register Src="~/CMSWebParts/Text/statictext.ascx" TagName="PoweredByKentico" TagPrefix="cms" %> <%@ Register Src="~/CMSWebParts/MARMOREM/Header.ascx" TagPrefix="cms" TagName="Header" %> <%@ Register Src="~/CMSWebParts/MARMOREM/Footer.ascx" TagPrefix="cms" TagName="Footer" %>


<html <%=XmlNamespace%>>

<body class="<%=BodyClass%>" <%=BodyParameters%>>

0 votesVote for this answer Mark as a Correct answer

ranjith kumar answered on September 5, 2016 10:15 (last edited on September 5, 2016 10:17)

i have enabled the ssl in kentico cms. page redirection and external resources is working. but the css & js urls is still can i change this.wher i change this http to https via cms or our asp code.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.