SEOを考え、パーマリンクの設定を

/articles/%category%/%post_id%.html

に変更しようと、WPの管理画面から設定すると、サーバーにアクセス出来なくなります。

CPIサーバーでmod_rewriteを有効にするには
.htaccessで

Options +FollowSymLinks

という記述が必要になります。

これを先に記述してから、WPの管理画面からパーマリンクの設定を変更します。


この、先にOptions +FollowSymLinksを記述してから、WPの管理画面からパーマリンクの設定をするという順番が大切みたいで、いきなり直接下記を.htaccessに記述しても、リンク先はNot Foundとなります。

AddHandler x-httpd-php441 .php
suPHP_ConfigPath /usr/home/g123456/secure/wordpress/
Options +FollowSymLinks

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

【関連する投稿】