functions.phpに以下を記述
[php]if ( ! function_exists( 'post_is_in_descendant_category' ) ) {
function post_is_in_descendant_category( $cats, $_post = null ) {
foreach ( (array) $cats as $c…
なんともない話題ではありますが、既存のサイトを公開したまま、index.phpの方で、WordPressを入れて、リニューアルをと思ってたんですが、index.phpもindex.htmlもWordPressのホームディレクトリにリダイレクトされてるようです。
どうしたもんかと思ってたら、簡単に解決する方法がありました。
wp-include内のcanonical.phpファイルを開き、270行目付近にある、以下の一文をコメントアウトするだけです。
$redirect['path'] = preg_replace('|/index.php/*?$|', '/', $redirect['path']);
この投稿へのコメント
コメントはまだありません。