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 3982808
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:34:21+00:00 2026-05-20T05:34:21+00:00

On our site, we have F5’s Big IP handling the SSL encrypting and decryption,

  • 0

On our site, we have F5’s Big IP handling the SSL encrypting and decryption, and sending the request to port 80 on our server.

Since this is the first site we are doing with ASP.NET MVC, I was curious how it would handle @HTML.ActionLink’s in the views. Surpisingly, it is putting https://. On our CI environment (which doesn’t do the SSL), it is putting http:// on all the links.

We have other links to bring in javascript files, css files and images, and we are using a custom HTTP header added by F5 to the request so we can tell.

Does anyone know how ASP.NET MVC3 knows whether or not the links should have http:// or https://, as I would rather not have a custom HTTP header coming in, if there is a way we can use the same method.

  • 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-20T05:34:22+00:00Added an answer on May 20, 2026 at 5:34 am

    IF you use RequireHttpsAttribute in your controller, this is one way. As it’ll redirect to Https if called with Http.

    Another important way that is likely your case is that it uses the current request path (Request.AbsoluteUrl) to make the links, so, if the original page is called using HTTPs, the links will be Https (from quick look at the code).

    So, maybe the raw URL is coming to IIS to port 80 but with indicating that the URL includes Https. Try to output something like Request.ServerVariables[ "HTTP_URL" ] to confirm. I assume that Request.ServerVariables["HTTPS"] in your case as you describe it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML document that matches our site navigation something like this: <page
In one page of our site, I have this code: $_SESSION['returnURL'] = /store/checkout/onepage; and
We have a production server and a development server for our site. I have
We have this in the HEAD of our site, and we're not sure what
I have Selenium running under Cruise Control to test our site once a day.
i have developed our company site where we show one product detail means one
I have clients that use our web site (asp.net) that they have to be
I have a rather complicated deploy setup for our Drupal site that is a
Post-release, I have made one small change to one form in our development site
For our CMS we have a site manager that defines the site's tree structure

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.