+ Post New Thread
Results 1 to 7 of 7
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? Thanks Chris Edit - this is for ...
  1. #1

    CHR1S's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    4,489
    Thank Post
    1,575
    Thanked 478 Times in 302 Posts
    Rep Power
    215

    Redirect http to https

    Is there a very simple way to redirect http://mail.domain.com to https://mail.domain.com in IIS?

    Thanks

    Chris

    Edit - this is for OWA btw.

  2. #2

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,211 Times in 761 Posts
    Rep Power
    394
    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?).

  3. #3

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,641
    Thank Post
    894
    Thanked 1,314 Times in 798 Posts
    Blog Entries
    1
    Rep Power
    441
    I was pretty sure IIS had a setting for this very thing. Which version?

  4. #4

    CHR1S's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    4,489
    Thank Post
    1,575
    Thanked 478 Times in 302 Posts
    Rep Power
    215
    Point 4 on this page - IIS7 Redirect HTTP to HTTPS

    Copy and paste the following code between the <rules> and </rules> tags in your web.config file in your website root directory.
    Is that in the OWA folder? If so web.config has no <rules> section.

    I'm a bit rubbish with web stuff, in case you haven't figured that out yet

  5. #5

    CHR1S's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    4,489
    Thank Post
    1,575
    Thanked 478 Times in 302 Posts
    Rep Power
    215
    Quote Originally Posted by ZeroHour View Post
    I was pretty sure IIS had a setting for this very thing. Which version?
    7, and this is padding coz I cant just reply with 7

  6. #6

    CHR1S's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    4,489
    Thank Post
    1,575
    Thanked 478 Times in 302 Posts
    Rep Power
    215
    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.

  7. #7

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,641
    Thank Post
    894
    Thanked 1,314 Times in 798 Posts
    Blog Entries
    1
    Rep Power
    441
    Quote Originally Posted by CHR1S View Post
    Last reply on the link above....
    Try this?
    IIS7 Redirect HTTP to HTTPS

SHARE:
+ Post New Thread

Similar Threads

  1. Firefox can't log in to https sites
    By jamin100 in forum General Chat
    Replies: 8
    Last Post: 20th May 2014, 11:58 AM
  2. how to redirect http to https on Exchange 2003
    By kieran8055 in forum How do you do....it?
    Replies: 2
    Last Post: 6th October 2009, 08:28 AM
  3. IIS problems http to https redirection
    By cheredenine in forum Internet Related/Filtering/Firewall
    Replies: 7
    Last Post: 27th February 2009, 05:14 PM
  4. Replies: 1
    Last Post: 12th December 2008, 03:10 PM
  5. Redirect http traffic with DNS server?
    By netadmin in forum Windows
    Replies: 3
    Last Post: 24th July 2007, 10:16 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •