LoginSignup
0
0

More than 5 years have passed since last update.

WordPress URLからwp(wordpressファイルが入った階層)を無くす方法

Last updated at Posted at 2017-11-21

さくらサーバーやXserverの簡単インストールを使った場合、wordpressのトップページは
example.com/wp/
となります。
この時のトップページを一階層上げる作業をご紹介します。

①【設定】→【一般】から[サイトのアドレス(URL)]から/wpを省く。
Screenshot(4).jpg

②/wp/index.phpを複製してトップページとしたい階層にコピペでindex.phpを貼り付ける。

③index.phpを下記のように書き換える。

index.php
require('/wp-blog-header.php');

index.php
require('/wp/wp-blog-header.php');

④管理画面の【設定】→【パーマンリンク設定】を更新する。(htaccessが更新される。)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0