Problem background:
无论是输入http://...,还是输入域名,都能跳转至https://...,
Question:There are many ways, some are written in the file that configures port 80, some are written in .htaccess, and some set meta/refresh on the page.
Which one is more cost-effective?
It is recommended to write port 80
1. No need for meta and refresh
Port 80, make a jump
The most cost-effective method is to use nginx’s rewrite to configure it