hypweb.net
XOOPSマニア  最新情報のRSS(サイト全体)
[ 自宅サーバーWebRing |ID=54 前後5表示乱移動サイト一覧 ]

TOP » xpwiki » xpWiki開発日記 » 2008-05-21 のバックアップ差分(No.1)
1: 2008-05-22 (木) 00:39:20 nao-pon ソース バックアップ No.1 を復元して編集
Line 1: Line 1:
 +#navi(../)
 +* 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 にて以下の設定が必要になります。
 +
 + <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 を置く
 +/* スクリプト名.php
 +<?php
 +include 'index.php';
 + */
 +$root->path_info_script = 'index';
 +}}
 +
 +このサイトの [[UsersWiki>UsersWiki:FrontPage]] では、この "index" を "person" として運用しています。
 +
 +- UsersWiki/person.php
 +#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(../)


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード印刷に適した表示   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom Powered by xpWiki
Counter: 325, today: 1, yesterday: 0
このページのTopへ
メインメニュー
ログイン

ユーザー名:


パスワード:





パスワード紛失  |新規登録
オンライン状況
556 人のユーザが現在オンラインです。 (4 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 556

もっと...
サイト情報