use for redirect page to https or http.


Sample: For use https:

[HttpPost]
        [RequireHttps(RequireSecure = true)]
        public ActionResult PaginaSegura(FormCollection form)
        {
            ViewBag.img = "https://a248.e.akamai.net/f/248/31637/1d//img.americanas.com.br/produtos/01/00/item/116237/4/116237413_1GG.jpg";

            return View();
        }
        
If you can not use https, just use [RequireHttps(RequireSecure = false)]