One, phpstudy configures ssl certificate
Download the applied SSL certificate file, if it is apache, download the ssl certificate in apache. If it is nginx, download the certificate in nginx. After the download is complete, open the certificate file with a text editor and copy the three ssl certificate files to As shown in the figure below in phpstudy
Note: You can choose to copy or import
Two, apache http jump to https
Then add the following code in the phpstudy website configuration modification pseudo-static. If there is other content in your pseudo-static file, add the code to the previous content.
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://www.域名.com/$1 [R=301,L]
Note: You can also create a new text directly, copy the code into it and save it as a .htaccess file to copy the file to the root directory of the website
Everywhere phpstudy configures ssl certificate, apache http jumps to https and the setting is complete