<?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>サイトアドレス &#8211; カミュプリィの雑多なメモ</title>
	<atom:link href="https://www.commuply.co.jp/technic/memo/tag/%E3%82%B5%E3%82%A4%E3%83%88%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.commuply.co.jp/technic/memo</link>
	<description></description>
	<lastBuildDate>Sat, 25 Oct 2025 06:53:59 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.commuply.co.jp/technic/memo/wp-content/uploads/site-icon-150x150.png</url>
	<title>サイトアドレス &#8211; カミュプリィの雑多なメモ</title>
	<link>https://www.commuply.co.jp/technic/memo</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>[WordPress]サイトアドレスを変更</title>
		<link>https://www.commuply.co.jp/technic/memo/wordpress%e3%82%b5%e3%82%a4%e3%83%88%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92%e5%a4%89%e6%9b%b4/</link>
		
		<dc:creator><![CDATA[ume]]></dc:creator>
		<pubDate>Tue, 12 Aug 2025 01:20:20 +0000</pubDate>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[DirectoryIndex]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[require]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[コンテンツマネジメントシステム(CMS)]]></category>
		<category><![CDATA[サイトアドレス]]></category>
		<guid isPermaLink="false">https://www.commuply.co.jp/technic/memo/?p=1298</guid>

					<description><![CDATA[既存のWordPressを更改するために、サブフォルダをつくって作成し、最後にURLをドメイン直下へ変更して表示を切り替える方法です WordPress &#62;&#62; サイトアドレス (#1) WordPress &#038; [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>既存のWordPressを更改するために、サブフォルダをつくって作成し、最後にURLをドメイン直下へ変更して表示を切り替える方法です</p>



<div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="wordpress-gtgt-%25e3%2582%25b5%25e3%2582%25a4%25e3%2583%2588%25e3%2582%25a2%25e3%2583%2589%25e3%2583%25ac%25e3%2582%25b9-1">WordPress &gt;&gt; サイトアドレス (#1)</h3>


<p>WordPress &gt;&gt; 設定 &gt;&gt; 一般 &gt;&gt; <strong>サイトアドレス</strong> を変更して保存します</p>



<figure class="wp-block-image size-large"><img data-dominant-color="c7ccd0" data-has-transparency="false" style="--dominant-color: #c7ccd0;" fetchpriority="high" decoding="async" width="1024" height="243" sizes="(max-width: 645px) 100vw, 645px" src="https://www.commuply.co.jp/technic/memo/wp-content/uploads/wordpress-1024x243.png" alt="" class="wp-image-1299 not-transparent" srcset="https://www.commuply.co.jp/technic/memo/wp-content/uploads/wordpress-1024x243.png 1024w, https://www.commuply.co.jp/technic/memo/wp-content/uploads/wordpress-300x71.png 300w, https://www.commuply.co.jp/technic/memo/wp-content/uploads/wordpress-768x182.png 768w, https://www.commuply.co.jp/technic/memo/wp-content/uploads/wordpress.png 1078w" /></figure>



<div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="wordpress-gtgt-wordpress-%25e3%2582%25a2%25e3%2583%2589%25e3%2583%25ac%25e3%2582%25b9-2">WordPress &gt;&gt; WordPress アドレス (#2)</h3>


<p>WordPress &gt;&gt; 設定 &gt;&gt; 一般 &gt;&gt; <strong>WordPress アドレス</strong> にある「.htaccess」と「index.php」を取得します</p>



<div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="%25e3%2582%25b5%25e3%2582%25a4%25e3%2583%2588%25e3%2582%25a2%25e3%2583%2589%25e3%2583%25ac%25e3%2582%25b9-1-%25e3%2581%25ab%25e3%2582%25a2%25e3%2582%25af%25e3%2582%25bb%25e3%2582%25b9%25e3%2581%2597%25e3%2581%259f%25e3%2583%25a6%25e3%2583%25bc%25e3%2582%25b6%25e3%2583%25bc%25e3%2582%2592-wordpress-%25e3%2582%25a2">サイトアドレス (#1) にアクセスしたユーザーを WordPress アドレス (#2) へ</h3>


<p>WordPressは、WordPressが入っている WordPress アドレス (#2) のファイルを更新しますが、その外にある サイトアドレス (#1) を更新しません</p>



<p>ブラウザーからサイトアドレス (#1) にアクセスしたら、WordPress本体がある WordPress アドレス (#2) を案内する設定が求められます</p>


<h4 class="wp-block-heading has-accent-1-background-color has-background" id="indexphp">index.php</h4>


<p>WordPress アドレス (#2) を案内するファイルです</p>



<p>サイトアドレス (#1) に index.php がなかったら、WordPress アドレス (#2) からコピペします　そして次のところを書き換えます</p>



<pre class="wp-block-code"><code>（旧）
require __DIR__ . '/wp-blog-header.php';
　↓
（新）
<strong>require __DIR__ . '/サブフォルダ/wp-blog-header.php';</strong></code></pre>


<h4 class="wp-block-heading has-accent-1-background-color has-background" id="htaccess">.htaccess</h4>


<p>優先順位の設定をいれるファイルです</p>



<p>サイトアドレス (#1) に index.php がなかったら、WordPress アドレス (#2) からコピペします　そして DirectoryIndex に続けて index.php を記載して、　index.php が最優先で開かれるようにします</p>



<pre class="wp-block-code"><code>（旧）
DirectoryIndex index.html
　↓
（新）
<strong>DirectoryIndex index.php</strong> index.html</code></pre>



<div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>



<p>こちらの記事が参考になるかもしれません：<a href="https://zenn.dev/chamii/articles/htaccess-use" target="_blank" rel="noreferrer noopener">.htaccessファイルの使い方</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
