Link to home
Start Free TrialLog in
Avatar of BCHCAdmin
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.
Thanks
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

This is a standard question on url redirection
use the url rewrite handler
https://www.experts-exchange.com/questions/28689944/Redirect-IIS-8-0-website-from-http-to-https.html
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
for a subdomain you need a separate or a wildcard certificate
Avatar of BCHCAdmin
BCHCAdmin

ASKER

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!
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.

Anyone?
ASKER CERTIFIED SOLUTION
Avatar of Pankaj Parmar
Pankaj Parmar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial