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 .*{REQUEST_URI} [NE,R,L]

Replace 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
Interested Parties
Related Topics
Topic revision: r2 - 27 Dec 2011, ArthurClemens - This page was cached on 25 Jul 2021 - 06:58.

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