The following tutorial column of Pagoda Panel will introduce to you the method of making HTTP requests automatically jump to HTTPS. I hope it will be helpful to friends in need!
How to make HTTP requests automatically jump to HTTPS
For users before version 2.5.3, if you need to set up SSL HTTP automatically jumps to HTTPS, please set it up as follows:
As shown:
Please add the following code to the site configuration file, location As shown above:
if ($server_port !~ 443){ rewrite ^/.*$ https://$host$uri; }
The above is the detailed content of Pagoda panel allows HTTP requests to automatically jump to HTTPS. For more information, please follow other related articles on the PHP Chinese website!