Menu

#115 Cool URI expand

legacyRender
open
5
2012-03-13
2012-03-13
No

https://www.facebook.com/groups/176626012402337/314526028612334/

xclFinder を Cool URI に対応させようとテストしてるのですが、XOOPS_URL が ディレクトリを掘ってる場合、(/hoge/ が XOOPS Root) の場合に RewriteBase /hoge/ としないと動かなような感じです。(少なくとも私の環境 (Apache/2.2.21 (Unix))では)

あと、xelFinder では、実際には PHP では参照していないのですが、ブラウザへのファイル名通知として URL の最後にファイル名を入れています。
これが原因で管理画面に表示される rewrite ルールではマッチしてくれませんでした。

RewriteRule ^(\w+)/(\w+)/(\d+)/ /xoops_root_path/modules/$1/index.php?requested_data_name=$2&requested_data_id=$3 [L,QSA]

を追加することで対応できました。汎用性を持たせて

RewriteRule ^(\w+)/(\w+)/(\d+)/(.+)$ /xoops_root_path/modules/$1/index.php?requested_data_name=$2&requested_action_name=$4&requested_data_id=$3 [L,QSA]

でもいいのですが、これって管理画面に表示される rewrite ルールに追加することは可能でしょうか?

Discussion


Log in to post a comment.