I want to redirect all http requests to https, and all www requests to non-www
问题 Here is my current .htaccess file: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php </IfModule> I want to redirect all http requests to https, and all www requests to non-www, and all file requests to index.php For example: http://www.example.com to https://example.com https://www.example.com to https://example.com