当サイトの記事は「http://yamazon.org/zencart/76」といったURLになっていますが、このように「ドメイン名/カテゴリ名/記事ID」の階層をもったURLにするためには
Wordpressの管理画面内の「設定」>「パーマリンク設定」の中の「一般的な設定」内の「カスタム構造」を選択し、「/%category%/%post_id%」と指定します。
もっと詳しいパーマリンクの使…
.htaccessに以下を記述してルートに設置
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /
# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
参考:http://eru-net.jp/web/?itemid=58
graffiti on the web
この投稿へのコメント
コメントはまだありません。