You have a little typo. In the last full code you have:
where it should be
everything else is fine. Thank you for this tutorial.
One more thing: now that I have https on my website how can I make the client visit to default to https on my site instead of http?