<?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/"
	>

<channel>
	<title>URL &#8211; トモデジ  tomodigi.com</title>
	<atom:link href="https://tomodigi.com/tag/url/feed/" rel="self" type="application/rss+xml" />
	<link>https://tomodigi.com</link>
	<description>デジタルもアナログも</description>
	<lastBuildDate>Thu, 22 Aug 2013 15:16:47 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>ドメイン(URL)変更を伴うWordPressの引っ越し</title>
		<link>https://tomodigi.com/web/%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3url%e5%a4%89%e6%9b%b4%e3%82%92%e4%bc%b4%e3%81%86wordpress%e3%81%ae%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97/</link>
					<comments>https://tomodigi.com/web/%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3url%e5%a4%89%e6%9b%b4%e3%82%92%e4%bc%b4%e3%81%86wordpress%e3%81%ae%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97/#comments</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Thu, 22 Aug 2013 19:37:22 +0000</pubDate>
				<category><![CDATA[WEB]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[ドメイン]]></category>
		<category><![CDATA[移行]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=2028</guid>

					<description><![CDATA[ドメイン変更を伴うWordpressの引っ越しを行ったのでメモです。ドメインの変更を伴う場合はファイルを丸ごとコピーしても残念ながらうまくいきません。今回はWordpress 3.6を用いたサイトの引っ越しをしました。ま &#8230; <a href="https://tomodigi.com/web/%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3url%e5%a4%89%e6%9b%b4%e3%82%92%e4%bc%b4%e3%81%86wordpress%e3%81%ae%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97/" class="more-link">続きを読む <span class="screen-reader-text">ドメイン(URL)変更を伴うWordPressの引っ越し</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>ドメイン変更を伴うWordpressの引っ越しを行ったのでメモです。ドメインの変更を伴う場合はファイルを丸ごとコピーしても残念ながらうまくいきません。今回はWordpress 3.6を用いたサイトの引っ越しをしました。また、データベースの修正には<a title="WordPress Serialized PHP Search Replace Tool | Interconnect IT - WordPress Consultants, Web Development and Web Design " href="http://interconnectit.com/products/search-and-replace-for-wordpress-databases/" target="_blank">WordPress Serialized PHP Search Replace Tool</a> を使いました。</p>
<p></p>
<ol>
<li>移行先にWordpressのファイルを展開します。<br />
同じバージョンで行います。できれば、移行元のバージョンを最新版にしておきます。ファイルの展開をしておくだけで、wp-config.phpは設定しないでも大丈夫です。</li>
<li>移行元のデータベースをバックアップします。<br />
phpMyAdminなどで出力して、移行先にコピーします。</li>
<li>移行元のファイルをバックアップします。wp-contentディレクトリのplugins、themes、uploadsを使います。</li>
<li>移行先のwp-contentディレクトリに3でバックアップしたplugins、themes、uploadsを上書きコピーします。</li>
<li>データベースのドメイン名の部分を書き換えます。こちらは<a title="WordPress Serialized PHP Search Replace Tool | Interconnect IT - WordPress Consultants, Web Development and Web Design " href="http://interconnectit.com/products/search-and-replace-for-wordpress-databases/" target="_blank">WordPress Serialized PHP Search Replace Tool</a> を使います。データベースの様々なところにシリアライズ化されたドメインURLがあるので、このようなツールを使って変更します。</li>
<li>移行先の、wp-login.phpにアクセスして、データベース等の設定をします。<br />
新しいデータベースを指定します。</li>
</ol>
<p>6が終わると移行完了です。</p>
<p>5.の<a title="WordPress Serialized PHP Search Replace Tool | Interconnect IT - WordPress Consultants, Web Development and Web Design " href="http://interconnectit.com/products/search-and-replace-for-wordpress-databases/" target="_blank">WordPress Serialized PHP Search Replace Tool </a>について詳しく書きます。V2.1.0を例に取ります。</p>
<p>ダウンロードしたzipファイルを展開するとsearchreplacedb2.phpというファイルがあるので、これをサーバー上のwordpressディレクトリにコピーします。このファイルにアクセスするとデータベースを設定する画面になります。</p>
<p><a href="http://www.tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_1png.png"><img fetchpriority="high" decoding="async" class="alignnone size-medium wp-image-2029" alt="replacedb2_1png" src="http://www.tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_1png-300x225.png" width="300" height="225" srcset="https://tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_1png-300x225.png 300w, https://tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_1png.png 789w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>ここでは、修正するべき移行先の新しいデータベースに合わせて設定をします。データベースにアクセスできると、修正対象のテーブルを選択する画面になります。</p>
<p><a href="http://www.tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_2.png"><img decoding="async" alt="replacedb2_2" src="http://www.tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_2-300x225.png" width="300" height="225" /></a></p>
<p>全てを選択して、Continueを押します。Do be sure that you have selected the correct tables &#8211; especially important on multi-sites installs?（マルチサイトに注意）と聞いてきます。</p>
<p><a href="http://www.tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_3.png"><img decoding="async" alt="replacedb2_3" src="http://www.tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_3-300x224.png" width="300" height="224" /></a></p>
<p>置換するドメインを設定します。上には移行元を下には移行先の文字列を記述します。httpなどはいりません。Submitを押すと実行の最終確認を促すダイアログが出ます。</p>
<p><a href="http://www.tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_4.png"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-2032" alt="replacedb2_4" src="http://www.tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_4-300x225.png" width="300" height="225" srcset="https://tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_4-300x225.png 300w, https://tomodigi.com/wordpress/wp-content/uploads/2013/08/replacedb2_4.png 789w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>完了すると結果が表示されます。意外と広範囲に置換した文字列があることがわかります。以上でデータベースの修正は終わりです。これで、記事のリンク先などが新しいURLになります。</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3url%e5%a4%89%e6%9b%b4%e3%82%92%e4%bc%b4%e3%81%86wordpress%e3%81%ae%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
