title: RequireHttps and routing to https URL
body: <p>I am using the RequireHttps attribute on most of the actions in my User controller which handles the login and my secure https pages.</p>
  
  <p>On my Home Page which is http I have a link to my login page as follows (MVC 4 Razor View):-</p>
  
  <pre><code>&lt;a href="@Url.Action("Login", "User")"&gt;Login&lt;/a&gt;
  </code></pre>
  
  <p>The link correctly goes to the login page with an https address.  However, when I look in the IIS log I see there are two entries for the login URL, one on port 80 and one on port 443.</p>
  
  <p>Is this an issue I should be concerned about?</p>
  
  <p>I know on my @Url.Action I could force https mode, but not sure if this is the best way.  Plus this removes the port, which is annoying when using IIS Express in VS 2012.  I'd then have to further extend the @Url.Action to include the hostname:port.</p>
  
  <p>So I am just checking if (a) this should be a concern and (b) if it is a concern whether there are any other ways to forcing the URL to https.</p>