Using .htaccess to redirect http://, http://www., and https://www. to https://
问题 It looks like various permutations of this question have been asked before, but it looks like all of the answers have specific idiosyncrasies that don't apply to my situation, or just don't work. So, here's what I'm after... I would like these three URLs: http://example.com http://www.example.com https://www.example.com ... To all redirect to: https://example.com From another answer, I tried this; <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC