Making Pages HTTPS Only with XML

This can also be achieved programatically inside a controller, however a more elegant solution is to add the following to a module’s config XML.

<config>
    <frontend>
        <secure_url>
            <unique_node_name>/url-to-page</unique_node_name>
        </secure_url>
    </frontend>
</config>