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
BCHCAdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
This is a standard question on url redirection
use the url rewrite handler
http://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
0
David Johnson, CD, MVPOwnerCommented:
for a subdomain you need a separate or a wildcard certificate
0
BCHCAdminAuthor Commented:
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!
0
BCHCAdminAuthor Commented:
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?
0
Pankaj ParmarCommented:
Redirection will be done by IIS, you can use url rewrite option in IIS, this should be installed if does not exists.
Also, you can create a new IIS website with binding as http://somepage.company.com and then use http redirect option in new IIS website and provide redirect URL as https://somepage.company.com.

After following either of the method, users are accessing http://somepage.company.com will get automatically redirected to https://somepage.company.com URL, SSL is not an issue here.

If the site is not working externally then you need to allow port 80 on firewall so that site is accessible using http://somepage.company.com and then redirects to https://somepage.company.com

Please let me know if you face any issue in configuration redirection. Thanks.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.