title: How to redirect HTTP to HTTPS using XAMPP
body: <p>I'm trying to redirect HTTP to HTTPS using XAMPP.<br />
  I've already seen all questions and multiple answers on multiple websites recommending this website: <em><a href="https://robsnotebook.com/xampp-ssl-encrypt-passwords" rel="nofollow noreferrer">XAMPP: SSL Encrypt the Transmission of Passwords with HTTPS | Rob's Notebook</a></em></p>
  <h2>This is what I did:</h2>
  <hr />
  <p>I uncommented the line:</p>
  <pre><code>LoadModule rewrite_module modules/mod_rewrite.so
  </code></pre>
  <p>in  <code>C:/xampp/apache/config/httpd.conf</code>  by removing the <code>#</code> in front of it.</p>
  <p>Then I typed this inside of <code>C:/xampp/apache/config/extra/httpd-xampp.conf</code>:</p>
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
  
      # Redirect /xampp folder to https
      RewriteCond %{HTTPS} !=on
      RewriteCond %{REQUEST_URI} xampp
      RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]
  
      # Redirect /phpMyAdmin folder to https
      RewriteCond %{HTTPS} !=on
      RewriteCond %{REQUEST_URI} phpmyadmin
      RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]
  
      # Redirect /security folder to https
      RewriteCond %{HTTPS} !=on
      RewriteCond %{REQUEST_URI} security
      RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]
  
      # Redirect /webalizer folder to https
      RewriteCond %{HTTPS} !=on
      RewriteCond %{REQUEST_URI} webalizer
      RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]
  &lt;/IfModule&gt;
  </code></pre>
  <p>I triple-checked that I did everything correctly, I saved everything, and I restarted XAMPP, but still, I'm not able redirected to HTTPS. Please Help!</p>