Web Development Thread, Redirect http to https in Coding and Web Development; Is there a very simple way to redirect http://mail.domain.com to https://mail.domain.com in IIS?
Edit - this is for ...
20th September 2011, 02:49 PM #1
Redirect http to https
Is there a very simple way to redirect http://mail.domain.com to https://mail.domain.com in IIS?
Edit - this is for OWA btw.
20th September 2011, 04:40 PM #2
I found the simplest way to do this for OWA was to edit the default page in the root to put in a META refresh tag. Another option would be to use the URL Rewrite module if you are using IIS7.
My first approach was to set up a different HTTP-only website and remove the HTTP binding from the site with OWA on it, but that caused problems with things that expected to find a few things only using HTTP (can't quite remember what now though, might have been something to do with autodiscover?).
20th September 2011, 05:39 PM #3
I was pretty sure IIS had a setting for this very thing. Which version?
20th September 2011, 05:52 PM #4
Point 4 on this page - IIS7 Redirect HTTP to HTTPS
Is that in the OWA folder? If so web.config has no <rules> section.
Copy and paste the following code between the <rules> and </rules> tags in your web.config file in your website root directory.
I'm a bit rubbish with web stuff, in case you haven't figured that out yet
20th September 2011, 05:53 PM #5
7, and this is padding coz I cant just reply with 7
Originally Posted by ZeroHour
20th September 2011, 06:02 PM #6
Last reply on the link above....
Redirection from http to https for OWA Exchange 2010
When you try to access yourcompany.com: The Leading Your Company Site on the Net
you got an error Http Error 403.4 – Forbidden
So we can add custom error and redirect to yourcompany.com: The Leading Your Company Site on the Net
1). Start IIS by clicking on Start -> Administrative Tools -> Internet Information Services (IIS) Manager.
2). Left click on "Default Web Site" folder and double click on Error Pages in the right pane (you may need to scroll down).
3). Here comes the final puzzle, Click on "Add..." and type the following:
Status code: 403.4
Response action: Select "Respond with a 302 redirect
Absolute URL: https:// yourcompany.com: The Leading Your Company Site on the Net
(substitude with your own address)
Test your OWA by using http. It should redirect to https, if it does not you may need to restart the IIS, and check your steps.
20th September 2011, 06:08 PM #7
Originally Posted by CHR1S
IIS7 Redirect HTTP to HTTPS
By jamin100 in forum General Chat
Last Post: 20th May 2014, 11:58 AM
By kieran8055 in forum How do you do....it?
Last Post: 6th October 2009, 08:28 AM
By cheredenine in forum Internet Related/Filtering/Firewall
Last Post: 27th February 2009, 05:14 PM
Last Post: 12th December 2008, 03:10 PM
By netadmin in forum Windows
Last Post: 24th July 2007, 10:16 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)