'Require SSL' property cause Azure URL to display in the Address bar

Kentico Basics asked on October 18, 2018 04:31

I cant enable SSL on the entire site as there are content related issues, but I want to selectively enforce https for some of the parent pages on my Kentico 10 site. My site is hosted in Azure but I am using my domain pointing to Azure site. When I set the 'Require SSL' property on for one of my page, the request to the page starts showing the actual domain in the address bar of the browser. Without 'Require SSL' it is fine and shows my domain properly. Can someone point to what I may be doing wrong.

Recent Answers


Brenden Kehren answered on October 18, 2018 05:44

Do you have an SSL cert installed for your primary domain? If not this behavior could happen

0 votesVote for this answer Mark as a Correct answer

Kentico Basics answered on October 18, 2018 15:51

yes thats installed, if I key in https://www.domainname.com/mypage it works. But when I set the 'Require SSL' property on, the URL becomes https://azureURL/mypage.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 18, 2018 16:19

Look at the site definition in Kentico, what is the domain set at? It should be your main URL (www.domainname.com) and not the Azure URL. Any redirects go to that main URL listed there. If you want to still access that Azure URL then list it as an alias for the site.

0 votesVote for this answer Mark as a Correct answer

Mohammad Qamar answered on October 19, 2018 03:44

No, still the same, I set the domain to our main URL. This is working fine until we set Require SSL to On. But when Require SSL is turned on, looks like it is trying to do a double redirect and from Kentico it doesn’t retain the URL rewrite URL.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 19, 2018 03:53

What aliases to you have set on the site? Do any of them redirect to another URL? Do you have any configuration in your web.config causing redirects? What about any abb settings? Do you have your main domain registered in the Azure web app?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 19, 2018 06:28

Hi,
Are there any proxy servers? The Require SSL setting only does the redirection to HTTPS protocol - there is no complicated logic. This sounds like there are some IIS URL Rewriting rules and you are masking/changing the URL on the IIS level internally and maybe it does not fits the HTTPS protocol.

0 votesVote for this answer Mark as a Correct answer

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