Permalinkの設定

Permalinkの設定とは、wordpressのページにアクセスするときのURLを以下のように変更する方法

http://wp.yurucafe.com/?p=123

http://wp.yurucafe.com/2007/05/08/sample-post/

  1. 管理ページ>オプション> Permalinkから設定
  2. .htaccessファイルを作成し、wordpressのドキュメントルートに設置
  3. .htaccessファイルに以下を記述
CODE:
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteBase /
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteRule . /index.php [L]
  7. </IfModule>

1 Response to “Permalinkの設定”


  1. 1 Mr WordPress

    Hi, this is a comment.
    To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.

Leave a Reply