Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Although it is difficult to check if SSL is engaged a way around the problem is to force SSL.</p> <p>From the <a href="http://www.wip.rackspacecloud.com/knowledge_center/index.php/How_do_I_force_SSL_on_my_ASP.NET_site" rel="nofollow noreferrer">RackspaceCloud Support knowledge base</a>:</p> <p>You can re-write URLs in web.config:</p> <pre><code>&lt;configuration&gt; &lt;system.webServer&gt; &lt;rewrite&gt; &lt;rules&gt; &lt;rule name="Redirect to HTTPS" stopProcessing="true"&gt; &lt;match url=".*" /&gt; &lt;conditions&gt; &lt;add input="{HTTP_CLUSTER_HTTPS}" pattern="^on$" negate="true" /&gt; &lt;add input="{HTTP_CLUSTER-HTTPS}" pattern=".+" negate="true" /&gt; &lt;/conditions&gt; &lt;action type="Redirect" url="https://{HTTP_HOST}{SCRIPT_NAME}" redirectType="SeeOther" /&gt; &lt;/rule&gt; &lt;/rules&gt; &lt;/rewrite&gt; &lt;/system.webServer&gt; &lt;/configuration&gt; </code></pre> <p>You can force SSL in ASP.NET:</p> <pre><code>&lt;%@ Page Language="C#" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; &lt;script runat="server"&gt; protected void Page_Load(object sender, System.EventArgs e) { if(Request.ServerVariables["HTTP_CLUSTER_HTTPS"] != "on") { if(Request.ServerVariables.Get("HTTP_CLUSTER-HTTPS") == null) { string xredir__, xqstr__; xredir__ = "https://" + Request.ServerVariables["SERVER_NAME"]; xredir__ += Request.ServerVariables["SCRIPT_NAME"]; xqstr__ = Request.ServerVariables["QUERY_STRING"]; if (xqstr__ != "") xredir__ = xredir__ + "?" + xqstr__; Response.Redirect(xredir__); } } Response.Write("SSL Only"); } &lt;/script&gt; &lt;html&gt; &lt;head id="Head1" runat="server"&gt; &lt;title&gt;SSL Only&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload