.Htaccess rules to redirect respective HTTP links to HTTP and HTTPS to HTTPS?
问题 First, here's the .htaccess rule I currently use: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://example.com/$1 [R=301,L] This is great, and redirects every link of my old domain to the very respective link in new domain. That is, http://olddomain.com/1.html is redirected to http://example.com/1.html and so forth. But it doesn't redirect https://olddomain.com/1.html to https://example.com/1.html And just so you know I tried, below are the rules I also happened to test.