Avatar of BCHCAdmin
 asked on

URL https redirect

We have a new website that we need to do a redirect if someone puts in the URL with http:  instead of https:  ....

for example - site is:

https://somepage.company.com  (this works fine)
Would like for a user to be able to put this in and have it work:
http://somepage.company.com  (redirect to https:)

One other thing is that the ssl cert is for this page:   https://sompage.company.com
A user can also put in https:/company.com and it gets them to the page but the cert is incorrect.  I think a wildcard? cert should have been installed?  Can someone describe how that should work?

Oh, this is on IIS 8 on a Server 2012 R2 machine.
Microsoft IIS Web ServerWeb Servers

Avatar of undefined
Last Comment
Pankaj Parmar

8/22/2022 - Mon
David Johnson, CD

This is a standard question on url redirection
use the url rewrite handler
you can also redirect mydomain.xxx to mydomain.xxx\mysite

When I would get the certificate I'd use domain.com for the subject name rather than domain.com\mysite
David Johnson, CD

for a subdomain you need a separate or a wildcard certificate

I am able to get the redirect (from http: to https:) to work on our internal network but its not working outside?   Is this a DNS issue?  Firewall issue possibly?

I set up a forward lookup zone on our internal DNS servers to point to the internal IP address of our webserver.  So when I go to http://somepage.company.com it redirects to https://somepage.company.com correctly.  But when I get outside our network, its not working.

Thank you for your assistance!
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes

Bit more info - I have a Sonic Firewall NSA 4500.  It does not appear that is letting http: traffic through to my web server, where I think I could then redirect to the https: website.  So I either need to allow this http: traffic, or do the redirect at the sonicwall.

Pankaj Parmar

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question