How do I configure Apache to always redirect users to my secure (https) site?

Place this rewrite rule as early as possible in your config:

RewriteCond %{HTTPS} off
RewriteRule .* https://my.website.com%{REQUEST_URI} [NE,R,L]

Replace my.website.com with the hostname for your wiki.

Support.FAQForm edit

TopicClassification FrequentlyAskedQuestion
Subject Security, Web server
Topic Summary A rewrite rule to redirect users to the https:// version of a site
Extension
Interested Parties
Related Topics
Topic revision: r2 - 27 Dec 2011, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy