powered by nequal

rhaco1-doc :: 099-tips/03-multi-entry-point.txt

http://wikihub.org/wiki/rhaco1-doc/099-tips/03-multi-entry-point

Table of contents:

collapse all expand all

Updates:

複数エントリポイント設定

権限毎や機能毎にエントリポイントを分けたいなんてことがあると思いますので,その設定をば.

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/?(.*)$ admin.php?%{QUERY_STRING}&pathinfo=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?%{QUERY_STRING}&pathinfo=$1 [L]

な感じ.