のこのサイトはWordPressで作っているが、下層のwpというフォルダにいれて、上部は色々とサンプルで練習しようと画策していたのだが、やはりindex.phpも普通に見れるように変更したい。そこで下層へリンクさせる。
現在の形、
1 2 3 4 5 |
webroot/index.php ├ wp │ ├wp-content │ ├wp-includes │ |
方法は簡単、WordPressのindex.phpを上位に持ってきて、パスを変更するだけ
1 2 3 4 5 6 7 |
* * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '<span style="color: #ff0000;"><strong>/wp/</strong></span>wp-blog-header.php' ); |