wordpress ディレクトリと共存させる

▼変更前

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp/wp-blog-header.php' );

▼変更後

/** Loads the WordPress Environment and Template */
require( '../wp/wp-blog-header.php' );

 

ここまでの状態で「http://ドメイン名/products/」にアクセスすると
リダイレクトループに陥ります

リダイレクトループの回避
functions.phpに下記を追加するとループせずに表示される

remove_filter('template_redirect', 'redirect_canonical');

 

参考
http://do-wp.com/how-to-place-a-directory-with-the-same-name-as-the-page-slug/