Add www. redirect to


(Michel Zehnder) #1

Out of habit I ALWAYS type, which leads nowhere. Would be nice if it was just a redirect to :slight_smile:

(Nicolas Bontoux) #2

Hi Michel,

It’s working well on my side (Chrome 67.0.3396.99 and Safari 9.0 on Mac OS).

Raw curl seems pretty affirmative too:

n-b-sonar:~ n-b-sonar$ curl -I
HTTP/1.1 302 Found
Date: Wed, 25 Jul 2018 09:36:10 GMT
Server: Apache
Strict-Transport-Security: max-age=63072000; preload
Content-Type: text/html; charset=iso-8859-1

(Michel Zehnder) #3


First try:

Fiddler trace:

[Fiddler] The connection to ‘’ failed.
Error: TimedOut (0x274c).
System.Net.Sockets.SocketException A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

λ nslookup
Server: UnKnown

Non-authoritative answer:

Then I tried doing -> works
And now normal http also works…
Something quirky going on here…

(Eric Hartmann) #4

Hi Michel,

Thanks for reporting this issue. I do confirm that there is an incorrect setup on our side.

We are using HSTS for SonarCloud, so as soon as you have connected through https, the HSTS flag is telling your browser to always use https for domain. So the second time you tried to connect, Internet Explorer was automatically redirect you to the https web site without trying to connect to the server.


(Michel Zehnder) #5

Yes, I thought so. Thanks for confirming (and hopefully fixing)

(Nicolas Bontoux) #6

And my bad for the confusion ! Didn’t come to mind that setup could look different from the inside network I’m on. Thanks for following-up @Eric_Hartmann.

(Henri Gomez) #7

Problem fixed, HTTP (80) and HTTPS (443) are now enabled, HTTP redirecting to HTTPS