Why does https jump to http? automatically?

there is a site that has just successfully installed a free certificate for Let"s Encrypt, and nginx has configured access to https.

can now be accessed through both https and http. Some pages can be accessed both ways, but some pages can be accessed by https and jump to the http page address, for example:

https://www.phpernote.com/php-template/200.html

Why is this? Please express your opinions, thank you!

nginx is configured as follows:

server {
        listen       80;
        server_name  www.phpernote.com ;
        root   /home/xxx/xxx;
        location / {
            index  index.php index.html;
        }
        include /home/xxx/xxx/.htaccess;
        location ~ ^(?:(?<!\.php).)+\.php($|/.*) {
            fastcgi_pass unix:/tmp/php-cgi.sock;
            fastcgi_index  index.php;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            include        fastcgi_params;
        }
}

server {
        listen       80;
        server_name  phpernote.com ;
        root   /home/xxx/xxx;
        location / {
            index  index.php index.html;
        }
        include /home/xxx/xxx/.htaccess;
        location ~ ^(?:(?<!\.php).)+\.php($|/.*) {
            fastcgi_pass unix:/tmp/php-cgi.sock;
            fastcgi_index  index.php;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            include        fastcgi_params;
        }
}

server {
        listen       443 ssl;
        ssl on;
        ssl_certificate /etc/letsencrypt/live/www.phpernote.com/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/www.phpernote.com/privkey.pem;
        server_name  www.phpernote.com ;
        root   /home/xxx/xxx;
        location / {
            index  index.php index.html;
        }
        include /home/xxx/xxx/.htaccess;
        location ~ ^(?:(?<!\.php).)+\.php($|/.*) {
            fastcgi_pass unix:/tmp/php-cgi.sock;
            fastcgi_index  index.php;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            include        fastcgi_params;
        }
}

configuration information should be fine.
include / home/xxx/xxx/.htaccess;
is there any special configuration here?

do you restart nginx after changing the configuration

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c064-44608.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c064-44608.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?