Refer to the following site to set up the certificate and put the following .htaccess as root to complete the process.
It's a bit jammed.
さくらのサポート情報 【無料SSL】サーバコントロールパネルからの導入手順
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN Force SSL for SAKURA | |
# RewriteしてもHTTPS環境変数を有効にする | |
SetEnvIf REDIRECT_HTTPS (.*) HTTPS=$1 | |
# 常時HTTPS化(HTTPSが無効な場合リダイレクト) | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{ENV:HTTPS} !on | |
RewriteCond %{REQUEST_URI} !^/wp-cron.php$ | |
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</IfModule> | |
# END Force SSL for SAKURA |