Warning: strpos() expects parameter 1 to be string, array given in /home/miyucolor/www/risalog/wordpress/wp-includes/blocks.php on line 50

Warning: strpos() expects parameter 1 to be string, array given in /home/miyucolor/www/risalog/wordpress/wp-includes/blocks.php on line 50

Warning: Cannot modify header information - headers already sent by (output started at /home/miyucolor/www/risalog/wordpress/wp-includes/blocks.php:50) in /home/miyucolor/www/risalog/wordpress/wp-content/plugins/all-in-one-seo-pack/app/Common/Meta/Robots.php on line 89

Warning: Cannot modify header information - headers already sent by (output started at /home/miyucolor/www/risalog/wordpress/wp-includes/blocks.php:50) in /home/miyucolor/www/risalog/wordpress/wp-includes/feed-rss2.php on line 8
CPI | risalog https://risalog.org Notes on web design, coding. Wed, 07 Oct 2020 07:13:35 +0000 ja hourly 1 https://wordpress.org/?v=5.7.12 .htaccess httpからhttpsにリダイレクト https://risalog.org/htaccess-https/?utm_source=rss&utm_medium=rss&utm_campaign=htaccess-https https://risalog.org/htaccess-https/#respond Wed, 07 Oct 2020 07:12:45 +0000 https://risalog.org/?p=843 .htaccess Options +SymLinksIfOwnerMatchはCPIサーバー用の設定。 WordPress設定 [設定]メニュー→[一般]。「WordPress アドレス (URL)」と「サイトアドレス […]

The post .htaccess httpからhttpsにリダイレクト first appeared on risalog.]]>
.htaccess
Options +SymLinksIfOwnerMatch

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Options +SymLinksIfOwnerMatchはCPIサーバー用の設定。

WordPress設定

[設定]メニュー→[一般]。
「WordPress アドレス (URL)」と「サイトアドレス (URL)」のhttpをhttpsに書き換える。
「WordPress アドレス (URL)」がWPのディレクトリ。
「サイトアドレス (URL)」がサイトURL。

WordPress アドレス (URL):https://アドレス/wordpress
サイトアドレス (URL):https://アドレス

WordPressサイトを常時SSL化する方法

SSL サーバー証明書

The post .htaccess httpからhttpsにリダイレクト first appeared on risalog.]]>
https://risalog.org/htaccess-https/feed/ 0