Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6981147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:07:07+00:00 2026-05-27T18:07:07+00:00

In IIS7, if the default redirect at the website level is a relative path,

  • 0

In IIS7, if the default redirect at the website level is a relative path, how to make the default redirect is on https and not http.

Currently if the host is: abc.com and the login page is abc.com/myapp/login.aspx, I set the default redirect (IIS manager -> HTTPRedirect) to /myapp/login.aspx. So, if the user enters abc.com in his browser address bar, he gets redirected to http://abc.com/myapp/login.aspx. I want to make sure the user gets redirected to http*s*://abc.com/myapp/login.aspx.

Would it need a web.config at the root level?

Note that this cannot be done in asp.net code, because the asp.net code is not involved in the processing of this request

Edit:
One way to do it is having a “default” web app i.e. web app deployed at the root (web site) level and then use the standard redirection module available with asp.net. Any thoughts on pros, cons?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:07:08+00:00Added an answer on May 27, 2026 at 6:07 pm

    Finally we came up with 3 different options:

    1. Use an index.htm at the “Web Site” level and put a javascript that would set the
      window.location.href to the https URL.
    2. Use the IIS URL rewrite module
    3. Use a custom asp.net module to do the redirection to a https URL. The dll for this module will be registered in GAC and the module configured at the “Web Site” level. The registration in GAC is necessary because the module will be invoked for the child applications of the “Web Site”

    The option 3 was selected based on :

    1. Ease of Deployment. Installing the rewrite module on all the front end servers is more complex than installing a dll in GAC
    2. Support for non-browser User Agents that will not parse the javascript. This eliminates option 1.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you navigate to http://www.website.com/ you will see the IIS7 welcome screen. If you
My default document is in subfolder not in root how can i make it
i created a site on my iis7 it's like http://localhost:88/my i also can access
I have an asp.net3.5 website.want to deploy this site on iis.After deploy my default
I've run into a strange problem regarding default buttons in master pages and IIS7
On http://www.hesa.ac.uk , we are using a custom 404 handling script to redirect users
Two-part question (parts are closely related): with the default OOTB ETag policy that IIS7
I have a server with IIS7 that I am using to host several different
On my site, a broken link throws the default, page not found error. In
I am experiencing various problems relating to default page in IIS7. I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.