Home IIS/ASP.NET - Infinite redirects in deployed code
 I am getting an infinite redirect loop only when I deploy my code to a Production environment. I am attempting to force SSL on the page by using a simple code redirect. I am running into the issue with a stripped-down old school web form (I'm stuck on .NET 3.5 for this project). All code is below. Any ideas on why I would get an infinite redirect look in Production and not Test? Notes on test vs production: Test is IIS 10 on Windows 10. Production is IIS 6 on Windows Server 2003 R2. Test uses a self-signed SSL cert. Production uses a fully trusted SSL cert. Identical web.configs ASPX Markup: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecurePage.aspx.cs" Inherits="wwwroot.SecurePage" %>
 CODE-BEHIND: namespace wwwroot { public partial class SecurePage : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Request.Url.ToString().ToLower().StartsWith("https://")) Response.Redirect(Request.Url.ToString().ToLower().Replace("http://", "https://")); } } }