<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>【HTTPS化】タグの記事一覧｜トラインベスト</title>
	<atom:link href="https://tryinvestment.net/tag/https%E5%8C%96/feed/" rel="self" type="application/rss+xml" />
	<link>https://tryinvestment.net</link>
	<description>知識ゼロから老後までに3,000万円作る方法</description>
	<lastBuildDate>Mon, 24 Dec 2018 10:37:53 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.7</generator>

<image>
	<url>https://tryinvestment.net/wp-content/uploads/2019/06/cropped-4a332f05ade4ac7bb3c46c472cb5eac8-32x32.png</url>
	<title>【HTTPS化】タグの記事一覧｜トラインベスト</title>
	<link>https://tryinvestment.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<atom:link rel='hub' href='https://tryinvestment.net/?pushpress=hub'/>
<site xmlns="com-wordpress:feed-additions:1">150340435</site>	<item>
		<title>2019年版｜PC初心者向け！エックスサーバーでWordPress常時SSL化の手順完全版！</title>
		<link>https://tryinvestment.net/20180821wordpress_ssl/</link>
					<comments>https://tryinvestment.net/20180821wordpress_ssl/#respond</comments>
		
		<dc:creator><![CDATA[nazal@tryinvestment]]></dc:creator>
		<pubDate>Tue, 21 Aug 2018 02:00:48 +0000</pubDate>
				<category><![CDATA[ブログ運営]]></category>
		<category><![CDATA[HTTPS化]]></category>
		<category><![CDATA[常時SSL化]]></category>
		<guid isPermaLink="false">http://tryinvestment.net/?p=413</guid>

					<description><![CDATA[本日はWordPressブログの常時SSL化の手順をご紹介します。 今年の7月にgoogleのブラウザであるChromeがアップデートされ、SSL化していないと「保護されていません」と表示されるようになりました。 Chr]]></description>
										<content:encoded><![CDATA[<div class="theContentWrap-ccc"><p>本日は<strong>WordPressブログの常時SSL化の手順</strong>をご紹介します。</p>
<p>今年の7月にgoogleのブラウザであるChromeがアップデートされ、SSL化していないと「保護されていません」と表示されるようになりました。</p>
<blockquote class="twitter-tweet" data-width="500" data-dnt="true">
<p lang="ja" dir="ltr">Chromeアップデートしたら自分のブログにこんな表示が(；´Д｀)</p>
<p>原因は非SSL化！</p>
<p>しかも調べたら10月から赤字警告に変わるらしい…<br />そんなブログ見てもらえるのか？</p>
<p>ライブドアさん、常時SSL化後手にまわりすぎじゃね？(# ﾟДﾟ)/ <a href="https://twitter.com/hashtag/%E3%83%A9%E3%82%A4%E3%83%96%E3%83%89%E3%82%A2%E3%83%96%E3%83%AD%E3%82%B0?src=hash&amp;ref_src=twsrc%5Etfw">#ライブドアブログ</a> <a href="https://twitter.com/hashtag/%E5%B8%B8%E6%99%82SSL%E5%8C%96%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84?src=hash&amp;ref_src=twsrc%5Etfw">#常時SSL化できない</a> <a href="https://t.co/k8LdUiAEEi">pic.twitter.com/k8LdUiAEEi</a></p>
<p>&mdash; ナザール＠サラリーマン30代2児の父が資産運用 (@tryinvestment) <a href="https://twitter.com/tryinvestment/status/1024237923581841413?ref_src=twsrc%5Etfw">July 31, 2018</a></p></blockquote>
<p><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></p>
<p><span class="marker"><strong>SSL化は検索順位にも影響を及ぼす</strong></span>ので、ブログ運営をしていく上で今後は避けては通れない道です。</p>
<p>実際、ぼくもSSL化するためにlivedoorブログからWordPressに引っ越しました。</p>
<p>https://tryinvestment.net/livedoorblogssl2/</p>
<p>&nbsp;</p>
<p>SSL化は<strong>記事が増えれば増えるほどエラーが発生するリスクが高く</strong>なります。なので、ぼくのようにWordPressに引っ越しした方や、最近ブログを始められた方は<span class="marker">記事が少ないうち</span>にSSL化をしておきましょう。</p>
<p>今回は<strong><span class="marker">パソコンにあまり詳しくない方でも引越しができるように</span></strong><span style="color: #ff0000;"><strong>全行程</strong></span>をご紹介します。</p>
<p>SSL化するにあたり、ぼくのブログの状況です↓</p>
<div class="concept-box5">
<ul>
<li>WordPressでブログ運営</li>
<li>SSL化の前に20記事を公開済み</li>
<li>サーバーはエックスサーバーを使用</li>
</ul>
</div>
<p>&nbsp;</p>
<h2>まずはブログをバックアップ</h2>
<p>SSL化の作業はhtmlを大量に書き直すので、失敗すると記事が崩れ収拾がつかなくなる可能性があります。安全確保のため事前にバックアップを取ります。</p>
<p>ぼくがバックアップに使用したのはWordPressのプラグイン「backWPup」</p>
<img decoding="async" fetchpriority="high" class="alignnone size-full wp-image-521" src="https://tryinvestment.net/wp-content/uploads/2018/08/backup.png" alt="" width="448" height="172" />
<p>ダウンロード後、管理メニュー → 「backWPup」 → 「ダッシュボード」をクリック。</p>
<img decoding="async" class="alignnone size-medium wp-image-474" src="https://tryinvestment.net/wp-content/uploads/2018/08/バックアップ1-300x214.png" alt="" width="300" height="214" />
<p>ダッシュボードの中にある1クリックバックアップの「データベースのバックアップをダウンロード」をクリックするとバックアップデータをダウンロードできます。</p>
<img decoding="async" class="alignnone size-medium wp-image-475" src="https://tryinvestment.net/wp-content/uploads/2018/08/バックアップ2-300x103.png" alt="" width="300" height="103" />
<p>&nbsp;</p>
<h2>エックスサーバー側でSSL設定</h2>
<p>エックスサーバーのサーバーパネルにログインし、SSL設定を行います。</p>
<p>「ドメイン」の「SSL設定」をクリック。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-327" src="https://tryinvestment.net/wp-content/uploads/2018/08/ssl1.png" alt="" width="259" height="226" />
<p>「独自SSL設定の追加」のタブでSSL化するドメインを選択し「独自SSL設定を追加する（確定）」をクリック。</p>
<p>CSR情報（SSL証明書申請情報）を入力するは空白で大丈夫です。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-328" src="https://tryinvestment.net/wp-content/uploads/2018/08/ssl2.png" alt="" width="734" height="395" />
<p>1時間ほどすると設定が切り替わります。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-493" src="https://tryinvestment.net/wp-content/uploads/2018/08/ssl3.png" alt="" width="591" height="261" />
<p>&nbsp;</p>
<h2>WordPress側でSSL設定</h2>
<p>つぎにWordPress側で設定を行います。</p>
<p>管理メニューから「設定」 → 「一般」をクリック。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-476" src="https://tryinvestment.net/wp-content/uploads/2018/08/設定-一般.png" alt="" width="310" height="374" />
<p>「WordPressアドレス（URL）」と「サイトアドレス（URL）」の設定を変更します。</p>
<p><span class="marker">「http」を「https」に書き換える</span>とOKです。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-477" src="https://tryinvestment.net/wp-content/uploads/2018/08/設定-一般2.png" alt="" width="601" height="332" />
<p>設定を変更したら「変更を保存」ボタンを押して変更内容を適用します。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>内部リンクを全てhttpsに書き換える</h2>
<p>これまで書いてきた記事の内部リンクや内部画像リンクを全て「https」に変更します。</p>
<p>投稿や固定ページを1つ1つ開いて手作業で編集を行うことも可能ですが、膨大な時間をかけても変更漏れでうまくいかないので、Search RegexというWordpressプラグインで一括変換を行います。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-522" src="https://tryinvestment.net/wp-content/uploads/2018/08/searchregex.png" alt="" width="559" height="173" />
<p>Search Regexをインストール後、管理メニューから「ツール」 → 「Search Regex」をクリック。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-487" src="https://tryinvestment.net/wp-content/uploads/2018/08/serchRegex-1.png" alt="" width="304" height="244" />
<p>Search Regex画面で設定を入力します。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-488" src="https://tryinvestment.net/wp-content/uploads/2018/08/serchRegex2.png" alt="" width="637" height="268" />
<ul>
<li><span class="bold">Source</span>：Post content</li>
<li><span class="bold">Limit to</span>：No limit</li>
<li><span class="bold">Order By</span>：Ascending</li>
<li><span class="bold">Search pattern</span>：http://tryinvestment.net（SSL化前のブログURL）</li>
<li><span class="bold">Replace pattern</span>：https://tryinvestment.net（SSL化後のブログURL）</li>
<li><span class="bold">Regex</span>：選択不要</li>
</ul>
<div class="concept-box2">
<p>「tryinvestment.net」の部分はご自身のブログURLを入力してください。</p>
</div>
<p>入力後、「Replace」ボタンをクリックします。「Replace」と書いてありますがクリックすると確認画面に切り替わります。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-489" src="https://tryinvestment.net/wp-content/uploads/2018/08/serchRegex3.png" alt="" width="729" height="553" />
<p>置換を行う対象箇所がすべて表示されます。緑の網掛けが変更前、黄色の網掛けが変更後となります。変更前後のURLが正しいかどうかを確認します。</p>
<div class="concept-box2">
<p>一度置換処理を行うと、2度と元に戻せないので確認作業は入念に行ってください</p>
</div>
<p>確認ができたら「Replace＆Save」をクリックして一括置換を実施、保存します。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-490" src="https://tryinvestment.net/wp-content/uploads/2018/08/serchRegex4.png" alt="" width="781" height="335" />
<p>一括置換が終了したら以下のように完了メッセージが表示されます。ぼくの場合は記事数が少なかったため一括置換件数は71件でした。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-491" src="https://tryinvestment.net/wp-content/uploads/2018/08/serchRegex5.png" alt="" width="192" height="87" />
<p>&nbsp;</p>
<h2>「https」への転送設定</h2>
<p>http（SSL化前）のURLにアクセスしてもhttps（SSL化後）のURLに転送されるように設定を変更します。</p>
<p>エックスサーバーのサーバーパネルの「.htaccess編集」をクリック。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-530" src="https://tryinvestment.net/wp-content/uploads/2018/08/htaccess1.png" alt="" width="258" height="372" />
<p>設定するドメインを選択します。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-531" src="https://tryinvestment.net/wp-content/uploads/2018/08/htaccess2.png" alt="" width="733" height="256" />
<p>「.htaccess編集」は上級者向けの機能ですと注意表示が出ますが、することは簡単なので気にせず「.htaccess編集」のタブをクリックします。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-532" src="https://tryinvestment.net/wp-content/uploads/2018/08/htaccess3.png" alt="" width="716" height="321" />
<p>「.htaccess編集」タグを選択すると、現在の「.htaccess」が表示されます。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-533" src="https://tryinvestment.net/wp-content/uploads/2018/08/htaccess4.png" alt="" width="718" height="416" />
<p>「.htaccess」の欄に以下のコードをコピーして最初から表示されているコードの上に貼り付けます。</p>
<p>貼り付け後、「.htaccessを編集する（確認）」をクリック。</p>
<div class="simple-box8">
<p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine on<br />
RewriteCond %{HTTPS} !=on [NC]<br />
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]<br />
&lt;/IfModule&gt;</p>
</div>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-534" src="https://tryinvestment.net/wp-content/uploads/2018/08/htaccess5.png" alt="" width="715" height="457" />
<p>「.htaccessを編集する（確定）」をクリック。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-535" src="https://tryinvestment.net/wp-content/uploads/2018/08/htaccess6.png" alt="" width="719" height="489" />
<p>「.htaccessを編集しました」と表示されれば作業完了です。「http」と入力されても「https」へ転送されます。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-536" src="https://tryinvestment.net/wp-content/uploads/2018/08/htaccess7.png" alt="" width="250" height="92" />
<p>&nbsp;</p>
<h2>サイトを確認しエラーを修正 → 完了！</h2>
<p>これで常時SSL化の作業は完了です。サイトを確認してみましょう。</p>
<p>常時SSL化が上手くいっていると、chromeのアドレスバーは下図のように「鍵マーク＋保護された通信」と緑色で表示されます。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-538" src="https://tryinvestment.net/wp-content/uploads/2018/08/https2.png" alt="" width="302" height="30" />
<p>どこかに不備があると下図のように「https：//」のみが灰色で表示されます。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-537" src="https://tryinvestment.net/wp-content/uploads/2018/08/https1.png" alt="" width="192" height="34" />
<p>このような表示になった場合は、どこかのリンクがSSL化されていないため修正が必要です。</p>
<p>修正するには、SSL化が上手くいっていないページでキーボードの「F12」を押しデベロッパーツールを起動します。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-545" src="https://tryinvestment.net/wp-content/uploads/2018/08/sslチェック.png" alt="" width="755" height="520" />
<p>画面右側「console」をクリックするとピンク色の網掛けで問題のある部分が表示されます。</p>
<p>（ぼくは奇跡的に上手くいきエラーは出ませんでしたので、画像上にエラーは表示されていません。）</p>
<p>エラー部分をクリックすると問題のある部分（画像など）が表示されますので一つ一つ修正します。これは手作業で地道にやっていくしかないようです。</p>
<p>&nbsp;</p>
<p>修正が完了すると、<strong>晴れて常時SSL化の完了</strong>です。</p>
<p>&nbsp;</p>
<h2>アナリティクス等サービスの設定変更</h2>
<p>常時SSL化が完了したら合わせてアナリティクスとサーチコンソールの設定も合わせて変更しましょう。</p>
<p>まずはアナリティクスの設定です。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-546" src="https://tryinvestment.net/wp-content/uploads/2018/08/アナリティクス設定-1.png" alt="" width="600" height="464" />
<p>「管理」→「プロパティ設定」→「デフォルトのURL」をクリックし「https://」を選択、ほ存すると完了です。</p>
<p>&nbsp;</p>
<p>つぎにサーチコンソールの設定です。</p>
<p>まずはダッシュボードの左上「Search Console」をクリック。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-547" src="https://tryinvestment.net/wp-content/uploads/2018/08/サーチコンソール-1.png" alt="" width="231" height="123" />
<p>「プロパティの追加」をクリック。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-548" src="https://tryinvestment.net/wp-content/uploads/2018/08/サーチコンソール2-1.png" alt="" width="855" height="212" />
<p>ウェブサイトに「https://」から始まるアドレスを入力し「追加」をクリックすると完了です。</p>
<img decoding="async" loading="lazy" class="alignnone size-full wp-image-549" src="https://tryinvestment.net/wp-content/uploads/2018/08/サーチコンソール3-1.png" alt="" width="657" height="217" />
<p>以上がぼくが行った常時SSL化の全工程となります。</p>
<p>参考になると幸いです。</p>
<p>&nbsp;</p>
<p>常時SSL化をしなかったらどうなるかを詳しく書いていますので、よかったらお読みくださいませ。</p>
<p>https://tryinvestment.net/livedoorblogssl2/#SSL-2</p>
<p>https://tryinvestment.net/20180814livedoor_wordpress/</p>
<p>https://tryinvestment.net/20180831wordpresssetting5/</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://tryinvestment.net/20180821wordpress_ssl/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">413</post-id>	</item>
	</channel>
</rss>
