cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 11

Redirect HTTP to HTTPS

Jump to solution

I just enabled HTTPS for my Orion site.  I have HTTPS required on IIS.  I want to redirect anyone who browses to the HTTP site to HTTPS.  What is the best way to handle this redirection?

Tags (4)
0 Kudos
1 Solution
Level 10

HI Damienball

I am already using the same feature

First you need to understand that when you open a SSL (Https) site with Http it Gives you a specific error which is a html page call.

the idea is to replace the same page code with a script that changes the URL call.

Ensure you have made a copy of this page before proceeding.

I have replaced the 403.4 in IIS 6 with a .htm file that contains the following Javascript. It determines the http URL that the user went to and then redirects them to the https version.

<Script language="JavaScript">
<!-- begin hide

function goElseWhere()
{

var oldURL = window.location.hostname + window.location.pathname;


var newURL = "https://" + oldURL;


window.location = newURL;

}
goElseWhere();

// end hide -->
</script>

View solution in original post

8 Replies
Level 12

Will this ever be native functionality? 

0 Kudos
Level 16

in iis 7.x you can configure a redirect action on a website to return a 302 or 301 to the customer's browser that will redirect them.

Unfortunately this still breaks the config wizard, it doesn't follow redirect and so fails.

I switch our site to http so the config wizard can complete, and then back after an upgrade.

0 Kudos
Level 10

HI Damienball

I am already using the same feature

First you need to understand that when you open a SSL (Https) site with Http it Gives you a specific error which is a html page call.

the idea is to replace the same page code with a script that changes the URL call.

Ensure you have made a copy of this page before proceeding.

I have replaced the 403.4 in IIS 6 with a .htm file that contains the following Javascript. It determines the http URL that the user went to and then redirects them to the https version.

<Script language="JavaScript">
<!-- begin hide

function goElseWhere()
{

var oldURL = window.location.hostname + window.location.pathname;


var newURL = "https://" + oldURL;


window.location = newURL;

}
goElseWhere();

// end hide -->
</script>

View solution in original post

That's what i was looking for!  It's a little different in IIS7.  You use the Error Pages menu instead of Custom Errors in the site properties.  Thanks!

0 Kudos

is there any look at making solarwinds website natively support SSL/HTTPS?

Also looking for a native solution, such that when Orion upgrades are performed you don't get error at end of config wizard complaining about unable to reach 'http:\\orion.domain:443" - it can figure out the port and url, but seems config wizard is hardcoded for http only.

0 Kudos

Im on board with this - we should have that option during installation - not have to "hack" the system after the fact.


0 Kudos