Word pressで公開アドレスを変更する方法

http://www.exeample.com/wordpress/フォルダにインストールしたwordpressをhttp://www.exeample.com/フォルダで公開する場合。

まずルートディレクトリ中にindex.phpとhtaccessをwordpressフォルダからコピーします。

1. Word press管理画面の一般設定で、以下の設定に変更

WordPress のアドレス (URL)
http://www.example.com/wordpress (変更無し)

ブログのアドレス (URL)
http://www.example.com/

2. FTPクライアントソフトで index.php をダウンロードする
http://www.example.com/wordpress/index.php

3. index.phpを書き換える
require(‘./wp-blog-header.php’);

require(‘./wordpress/wp-blog-header.php’);

4. index.phpを移動先にアップする
http://www.example.com/index.php
http://wpdocs.sourceforge.jp/Giving_WordPress_Its_Own_Directory

ワードプレス

About Ken 327 Articles
有限会社ナセバーナルの代表取締役

Be the first to comment

Leave a Reply

Your email address will not be published.


*