You are here

html

How to force HTTPS using a web.config file

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <clear />
                <rule name="Redirect to https" stopProcessing="true">
                    <match url=".*" />
                    <conditions>
                        <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                    </conditions>

Bootstrap Example

<!doctype html>

<html lang="en">
<head>
<title>The HTML5 Herald</title>
<link href='css/bootstrap.css'rel='stylesheet'>
<meta charset="UTF-8">
<style>
.footer { background-color: #424242; color: #fff; }
.features .glyphicon { font-size: 32px; }
</style>
</head>