title: Redirect www to non-www on HTTPS
body: <p>My httpd.conf:</p>
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,L]
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  </code></pre>
  <p>successfully redirects <a href="http://www.example.com" rel="nofollow noreferrer">http://www.example.com</a> to <a href="https://example.com" rel="nofollow noreferrer">https://example.com</a> but failed to redirect <a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a> (to <a href="https://example.com" rel="nofollow noreferrer">https://example.com</a>). What is the problem?</p>