例えば、
http://kuronori.net/blog
↓
http://kuronori.net/
に変更したいときの作業についてです。
1.サブディレクトリの中にある下記2つをダウンロード。
・.htaccess
・index.php

2.index.phpファイルの最後の行を変更します。
・現在
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
・変更後
require( dirname( __FILE__ ) . ‘/blog/wp-blog-header.php’ );
3..htaccessファイルの2か所を変更します。
WordPressインストール先のディレクトリ名を取り除きます(例: /blog/ を / に)。
変更前)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/ ←ここを変更
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [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>
4.サブディレクトリの1つ上の階層にアップロードします。
