min30327
3/1/2019 - 2:05 AM

常時SSL化

<IfModule mod_rewrite.c>

	RewriteEngine On

	RewriteCond %{HTTP_HOST} ^willstyle\.sakura\.ne\.jp$
	RewriteRule ^(.*)$ https://www.willstyle.co.jp/$1 [R=301,L]

	RewriteCond %{HTTP_HOST} ^willstyle.co.jp$
	RewriteCond %{REQUEST_URI} !^/app/wp-cron.php$
	RewriteRule ^(.*)$ https://www.willstyle.co.jp/$1 [R=301,L]

	RewriteCond %{HTTP_HOST} ^www.willstyle.co.jp$
	RewriteCond %{ENV:HTTPS} !^on$
 	RewriteCond %{HTTP:X-Sakura-Forwarded-For} ^$
	RewriteCond %{REQUEST_URI} !^/app/wp-cron.php$
	RewriteRule ^(.*)$ https://www.willstyle.co.jp/$1 [R=301,L]

</IfModule>