WordPressで、パーマリンク設定でアドレスの設定を変更して、各記事のページが”Not Found”となった場合、”.htaccess”を設定することで解決できる可能性があります。
対象サイトが「http://hogehoge.com/」のようにDocumentRootである場合は
wordpressのルートディレクトリの以下の内容で、”.htaccess”を作成します。
1 2 3 4 5 6 |
RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] |
対象サイトがドキュメントルートではなく、「http://hogehoge.com/blog/」のような
場合は、以下のように設定します。
1 2 3 4 5 6 |
RewriteEngine On RewriteBase /blog/ RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] |