How to
url rewriting using web.config in asp.net
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 10, 2015, 2:41 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 10, 2015, 3:45 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 10, 2015, 2:36 AM EDT
Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 10, 2015, 2:49 AM EDT
NAME
Select: Blank Rule
Name: http to https
Match URL – Requested URL: Matches the Pattern
Match URL – Using: Regular Expression
Pattern: (.*)
CONDITIONS
Conditions: Add
Condition Input: {HTTPS}
Check if input string: Matches the Pattern
Pattern: ^OFF$
Click OK
ACTION
Action type: Redirect
Redirect URL: https://{HTTP_HOST}/{R:1}
Redirect type: See Other (303)
Click Apply
Lalit RaghavRank #1,306 · 1.3K reputationPosted Jun 10, 2015, 3:42 AM EDT