ページへ戻る
− Links
印刷
Ver 3.71.32 (PATH_INFO利用の静的URL対応)
の編集 ::
XOOPS マニア
xpwiki
:
xpWiki開発日記
/
2008-05-21
の編集
xpWiki開発日記/2008-05-21 の編集
詳細な入力項目を表示
ページタイトル
( 空白で自動設定 )
:
ページ頭文字読み:
ページ並び順
( 0-9 小数可 標準:1 )
:
ページ別名
(複数は[
改行
]で区切る)
:
ページ内容:
#navi(../) #boxdate * Ver 3.71.32 (PATH_INFO利用の静的URL対応) [#p7162dd3] &tag(静的URL,PATH_INFO,ini設定); ** 概要 [#ob810f1c] - 環境変数 PATH_INFO を利用した、静的URLに対応した。 ** PATH_INFO 利用の静的URL対応 [#sfeee636] "/index.php/ページ名", "/index/ページ名" というようなスタイルの静的URLに対応しました。 環境変数 PATH_INFO を利用しているため、サーバー環境によっては、動かないことがあるかも知れません。 設定は、管理画面の「環境設定」に設定項目を追加しました。 「ページURLの形式」で、''?[PAGE]'' | ''[ID].html'' | ''index/[PAGE]'' | ''index.php/[PAGE]'' のいづれかを選択します。 「index/[PAGE]」を選択した場合は、.htaccess にて以下の設定が必要になります。 Options +MultiViews <FilesMatch "^index$"> ForceType application/x-httpd-php </FilesMatch> また、[PAGE] の部分を UTF-8 エンコーディングして運用できる設定「ページURLを UTF-8 にする」も追加しました。 あと、管理画面にはありませんが、pukiwiki.ini.php にて、"index" 部分を変更することも可能です。 - pukiwiki.ini.php #code(php){{ // PATH_INFO 使用時 (static_url = 2 or 3) のスクリプト名 // "index" 以外にする場合は、.htaccess の書き換えと次の内容の「スクリプト名」のファイルを置く /* スクリプト名 <?php include 'index.php'; */ $root->path_info_script = 'index'; }} このサイトの [[UsersWiki>UsersWiki:FrontPage]] では、この "index" を "person" として運用しています。 - UsersWiki/person #code(php){{ <?php include 'index.php'; }} - UsersWiki/.htaccess #code(pre){{ <FilesMatch "^person$"> ForceType application/x-httpd-php </FilesMatch> }} これで、http://xoops.hypweb.net/modules/UsersWiki/person/nao-pon/blog といったURLでアクセスできるようになります。 ** CVS 更新内容 [#p20ea763] #region(今回の更新分){{ -2008-05-21 20:55 nao-pon --* xoops_version.php (1.348): ---Version 3.71.32 -2008-05-21 20:55 nao-pon --* ini/pukiwiki.ini.php (1.77): ---Supported "static url" with "PATH_INFO". -2008-05-21 20:49 nao-pon --* class/func/pukiwiki_func.php (1.170), class/func/xpwiki_func.php (1.170), class/include/init.php (1.51), ini/pukiwiki.ini.php (1.76), language/xpwiki/de/plugin/conf.lng.php (1.3), language/xpwiki/de_utf8/plugin/conf.lng.php (1.3), language/xpwiki/en/plugin/conf.lng.php (1.7), language/xpwiki/ja/plugin/conf.lng.php (1.7), language/xpwiki/ja_utf8/plugin/conf.lng.php (1.7), plugin/conf.inc.php (1.11), skin/js/fusen.js (1.12): ---Supported "static url" with "PATH_INFO". }} ** 一行コメント [#j1400698] #comment #navi(../)
編集の要約:
Q & A 認証:
ページ更新時は次の質問にお答えください。(プレビュー時は必要ありません)
Q:
「東京」の読みがな?(ひらがなで)
A:
お名前:
タイムスタンプを変更しない
テキスト整形のルールを表示する
[1]
添付ファイル
[2]
:
Links list
(This host) = https://xoops.hypweb.net
(This host)
/modules/xpwiki/?cmd=edit&help=true&page=xpWiki%B3%AB%C8%AF%C6%FC%B5%AD%2F2008-05-21
(This host)
/modules/xpwiki/?plugin=attach&pcmd=list&refer=xpWiki%B3%AB%C8%AF%C6%FC%B5%AD%2F2008-05-21