<?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>SSL &#8211; シンプルショッピング</title>
	<atom:link href="https://shop-s.net/tag/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>https://shop-s.net</link>
	<description>【シンプルショッピング】ごちゃまぜ情報ブログ</description>
	<lastBuildDate>Tue, 13 Jun 2017 02:13:43 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://shop-s.net/wp/wp-content/uploads/2017/01/cropped-letters-32x32.jpg</url>
	<title>SSL &#8211; シンプルショッピング</title>
	<link>https://shop-s.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">124745986</site>	<item>
		<title>【SSL設定】エックスサーバーの無料独自SSLでWordPressサイトをHTTPS化する</title>
		<link>https://shop-s.net/xserver-ssl/</link>
		
		<dc:creator><![CDATA[パンダ]]></dc:creator>
		<pubDate>Sun, 05 Mar 2017 15:19:01 +0000</pubDate>
				<category><![CDATA[エックスサーバー]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[ワードプレス]]></category>
		<category><![CDATA[備忘録]]></category>
		<guid isPermaLink="false">https://shop-s.net/?p=1928</guid>

					<description><![CDATA[<p>このサイト（シンプルショッピング）はエックスサーバーで運営しています。エックスサーバーはすべてのプランで独自SSLを無料で提供していますので、今回はhttps化してみました。 説明と言うよりは自分の備忘録的な部分が強めで...</p>
<p>投稿 <a rel="nofollow" href="https://shop-s.net/xserver-ssl/">【SSL設定】エックスサーバーの無料独自SSLでWordPressサイトをHTTPS化する</a> は <a rel="nofollow" href="https://shop-s.net">シンプルショッピング</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[<p>このサイト（シンプルショッピング）は<a href="https://px.a8.net/svt/ejp?a8mat=2NZMWL+ADW8OI+CO4+609HU" target="_blank" rel="nofollow">エックスサーバー</a><img loading="lazy" src="https://www13.a8.net/0.gif?a8mat=2NZMWL+ADW8OI+CO4+609HU" alt="" width="1" height="1" border="0" />で運営しています。<a href="https://px.a8.net/svt/ejp?a8mat=2NZMWL+ADW8OI+CO4+609HU" target="_blank" rel="nofollow">エックスサーバー</a>はすべてのプランで独自SSLを無料で提供していますので、今回はhttps化してみました。</p>
<p>説明と言うよりは自分の備忘録的な部分が強めです。</p>
<h2>独自SSLの設定をする</h2>
<p>&nbsp;</p>
<p>エックスサーバーのサーバーパネルにログインしてSSL設定をクリックして進みます。</p>
<div id="attachment_1941" style="width: 528px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1941" loading="lazy" class="size-full wp-image-1941" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-1.png" alt="サーバーパネル" width="518" height="290" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-1.png 518w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-1-300x168.png 300w" sizes="(max-width: 518px) 100vw, 518px" /><p id="caption-attachment-1941" class="wp-caption-text">サーバーパネル</p></div>
<p>SSL設定画面になりますので、独自SSL設定の追加タブを選択します。</p>
<div id="attachment_1945" style="width: 610px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1945" loading="lazy" class="wp-image-1945 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-2.png" alt="独自SSL設定画面" width="600" height="386" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-2.png 600w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-2-300x193.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><p id="caption-attachment-1945" class="wp-caption-text">独自SSL設定画面</p></div>
<p>ドメインを確認したら独自SSL設定を追加する（確定）を押して終了です。</p>
<div id="attachment_1946" style="width: 610px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1946" loading="lazy" class="wp-image-1946 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-3.png" alt="独自SSL設定を追加" width="600" height="332" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-3.png 600w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-3-300x166.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><p id="caption-attachment-1946" class="wp-caption-text">独自SSL設定を追加</p></div>
<p>サーバー側の設定自体は簡単ですが、この段階では「http://自サイトドメイン」を確認しても以下の様になると思います。</p>
<div id="attachment_1944" style="width: 610px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1944" loading="lazy" class="wp-image-1944 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-4.png" alt="Googlechromeの画面" width="600" height="386" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-4.png 600w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-4-300x193.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><p id="caption-attachment-1944" class="wp-caption-text">Googlechromeの画面</p></div>
<p>設定完了までは少し時間がかかりますが、完了すればサイトが表示されるようになります。（20分～1時間程度）</p>
<div id="attachment_1947" style="width: 409px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1947" loading="lazy" class="wp-image-1947 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-5.png" alt="firefoxの表示" width="399" height="176" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-5.png 399w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-5-300x132.png 300w" sizes="(max-width: 399px) 100vw, 399px" /><p id="caption-attachment-1947" class="wp-caption-text">firefoxのアドレスバー</p></div>
<div id="attachment_1948" style="width: 403px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1948" loading="lazy" class="wp-image-1948 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-6.png" alt="Googlechromeの表示" width="393" height="62" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-6.png 393w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-6-300x47.png 300w" sizes="(max-width: 393px) 100vw, 393px" /><p id="caption-attachment-1948" class="wp-caption-text">Googlechromeのアドレスバー</p></div>
<p>サイトが表示されましたが、「http://自サイトドメイン」にしたら最終的には以下の画像の様に緑色の鍵が表示されるようにしないといけません。</p>
<div id="attachment_1950" style="width: 330px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1950" loading="lazy" class="wp-image-1950 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-12.png" alt="firefoxの表示（安全な接続）" width="320" height="81" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-12.png 320w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-12-300x76.png 300w" sizes="(max-width: 320px) 100vw, 320px" /><p id="caption-attachment-1950" class="wp-caption-text">firefoxのアドレスバー（安全な接続）</p></div>
<div id="attachment_1949" style="width: 385px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1949" loading="lazy" class="wp-image-1949 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-11.png" alt="Googlechromeの表示（保護された通信）" width="375" height="61" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-11.png 375w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-11-300x49.png 300w" sizes="(max-width: 375px) 100vw, 375px" /><p id="caption-attachment-1949" class="wp-caption-text">Googlechromeのアドレスバー（保護された通信）</p></div>
<h2>ワードプレスの設定で「https」に変更する</h2>
<p>ワードプレスの管理画面から設定→一般を開いてURLを変更していきます。</p>
<img loading="lazy" class="aligncenter size-full wp-image-1954" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-13.png" alt="" width="592" height="138" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-13.png 592w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-13-300x70.png 300w" sizes="(max-width: 592px) 100vw, 592px" />
<p>『http』を『https』に変更するだけで、出来ると思います。</p>
<p>WordPressアドレス（URL）を<span style="background-color: #ffff99;">『https://ドメイン名』</span></p>
<p>サイトアドレス（URL）を<span style="background-color: #ffff99;">『https://ドメイン名』</span></p>
<p>変更したら左下にある『変更と保存』を押して完了です。</p>
<p>この変更だけで、アドレスバーのURLが鍵マークになればOKですが、まだなりませんでしたので次にサイト内部リンクのアドレス部分を変更していきます。</p>
<h2>サイトの内部リンクと画像をプラグインを使って一括で置換する</h2>
<p>サイトのアドレスまでは、変更しましたが投稿記事や固定ページの内部リンクや画像のアドレスを変更していきます。</p>
<p>一つ一つ手作業で変更するのは無理がありますのでプラグインの<a href="https://ja.wordpress.org/plugins/search-regex/">Search Regex</a>を使って一括で変更していきます。</p>
<p>管理画面のプラグインの新規追加から『Search Regex』を検索してインストールしましょう。</p>
<p>有効かしたらツール→Search Regexをクリックして進むと以下の画面になります。</p>
<p>SourceがPost contentになっているか確認をしたら</p>
<img loading="lazy" class="aligncenter size-full wp-image-1962" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-7a.png" alt="" width="598" height="191" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-7a.png 598w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-7a-300x96.png 300w" sizes="(max-width: 598px) 100vw, 598px" />
<p>Search Pattern 　：　http://ドメイン名</p>
<p>Replace pattern　：　https://ドメイン名</p>
<p>入力したら『Replace』を押すと置換できる候補が出てきますので、問題ないか確認をしましょう。</p>
<img loading="lazy" class="aligncenter size-full wp-image-1963" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-8.png" alt="" width="397" height="351" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-8.png 397w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-8-300x265.png 300w" sizes="(max-width: 397px) 100vw, 397px" />
<p>問題がなければ、『Replace &amp; Save』を押すと置換が完了します。</p>
<p>僕の場合は、feedlyとRssのボタンが『http://』でしたので、その部分は手動で修正しました。</p>
<h2>301リダイレクトをエックスサーバーの『.htaccess』に記述</h2>
<p>内部リンクまでは修正が出来ていますが、この時点では変更前のサイトURL『http://ドメイン名』と『https://ドメイン名』の2つが別のサイトとして認識されています。</p>
<p>『http://ドメイン名』にアクセスしても『https://ドメイン名』にアクセスするように設定をしていきます。</p>
<h4>エックスサーバーの『.htaccess』に『https』へのリダイレクトを設定</h4>
<p>エックスサーバーのサーバーパネルにアクセスして『.htaccess』をクリックします。</p>
<div id="attachment_1966" style="width: 610px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1966" loading="lazy" class="wp-image-1966 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-14.png" alt="サーバーパネル" width="600" height="217" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-14.png 600w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-14-300x109.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><p id="caption-attachment-1966" class="wp-caption-text">サーバーパネル</p></div>
<p>ドメイン選択画面になりますので、リダイレクトするドメインを選んで【選択する】を押して進みます。</p>
<div id="attachment_1967" style="width: 610px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1967" loading="lazy" class="wp-image-1967 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-15.png" alt="ドメイン選択画面" width="600" height="203" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-15.png 600w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-15-300x102.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><p id="caption-attachment-1967" class="wp-caption-text">ドメイン選択画面</p></div>
<p>以下の画面になりますので『.htaccess編集』のタブをクリックします。</p>
<div id="attachment_1968" style="width: 610px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1968" loading="lazy" class="wp-image-1968 size-full" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-16.png" alt=".htaccess編集" width="600" height="152" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-16.png 600w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-16-300x76.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><p id="caption-attachment-1968" class="wp-caption-text">.htaccess編集</p></div>
<p>タブをクリックすると以下の画面になります。<br />
ここで以下のコードを＃BEGIN WordPressの直上に追加していきます。</p>
<pre>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
&lt;/IfModule&gt;
</pre>
<p><img loading="lazy" class="aligncenter size-full wp-image-1969" src="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-17.png" alt="" width="600" height="672" srcset="https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-17.png 600w, https://shop-s.net/wp/wp-content/uploads/2017/03/xs-ssl-17-268x300.png 268w" sizes="(max-width: 600px) 100vw, 600px" /><br />
記述出来ましたら、右下の【.htaccessを編集する（確認）】をクリックすると確認なので、良ければもう一度押して完了になります。</p>
<p>これでブラウザのアドレスバーに『http://ドメイン名』を入力しても、『https://ドメイン名』にリダイレクトされるようになります。</p>
<h2>まとめ</h2>
<p>今回、『https://ドメイン名』に変更することにしたのは、まだ記事も少ないので、比較的面倒なことも少ないと思い早めの変更に至りました。これからサイト・ブログをエックスサーバーで立ち上げていくなら最初に設定してしまえば苦労はないと思います。</p>
<ol>
<li>エックスサーバーの独自SSLの設定</li>
<li>ワードプレスの設定（httpsへ修正）</li>
<li>ワードプレスの内部リンクの修正</li>
<li>エックスサーバーでのリダイレクト設定を『.htaccess』に追加</li>
</ol>
<p>以上でアドレスバーの鍵がしっかりと出て、リダイレクトまで問題なく設定できました。</p>
<p>この後に、Google AnalyticsとGoogle Search Consoleを設定し直して、最後にHSTS Preload Submissionの登録まで行い完了としました。<br />
<div class="related_article cf"><a href="https://shop-s.net/xserver-install/"><figure class="eyecatch thum"><img width="486" height="290" src="https://shop-s.net/wp/wp-content/uploads/2017/02/binary-tr4-486x290.jpg" class="attachment-home-thum size-home-thum wp-post-image" alt="エックスサーバー申込方法解説" loading="lazy" /></figure><div class="meta inbox"><p class="ttl">XSERVER（エックスサーバー）の申し込み方法</p><span class="date gf">2017年2月24日</span></div></a></div>
<p>投稿 <a rel="nofollow" href="https://shop-s.net/xserver-ssl/">【SSL設定】エックスサーバーの無料独自SSLでWordPressサイトをHTTPS化する</a> は <a rel="nofollow" href="https://shop-s.net">シンプルショッピング</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1928</post-id>	</item>
	</channel>
</rss>
