Jan 30
RewriteEngine on
RewriteCond %{HTTP_HOST} foo\.example\.ne\.jp [NC]
RewriteCond %{REQUEST_URI} !^/bar/.*
RewriteRule (.*) /bar/$1 [L]

RewriteEngine on
RewriteCond %{HTTP_HOST} foo\.example\.ne\.jp [NC]
RewriteCond %{REQUEST_URI} !^/example/.*
RewriteRule (.*) index.php?virtualpath=/example/$1 [L,QSA]
RewriteCond %{HTTP_HOST} foo\.example2\.net [NC]
RewriteCond %{REQUEST_URI} !^/example2/.*
RewriteRule (.*) index.php?virtualpath=/example2/$1 [L,QSA]
RewriteCond %{HTTP_HOST} foo\.example3\.com [NC]
RewriteCond %{REQUEST_URI} !^/example3/.*
RewriteRule (.*) index.php?virtualpath=/example3/$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?virtualpath=$1 [L,QSA]

これでマルチドメインできるかな?
明日実験
No Comments yet.

OpenID を使ってログインすることができます。

Identity URL:



Web Services by Yahoo! JAPAN

Aug 17
フォーラムのほうにも書きましたがNP_CustomURLを使用している状態で複数のブログを立ち上げたい場合、通常必要なファイルが必要ない場合があります

通常、Nucleusで複数のブログを立ち上げる場合、newblog.php等の名前で、

$CONF = array();
$CONF['Self'] = 'newblog.php';

include('./config.php');

selectBlog('newBlog');
selector();

?

な内容のファイルが必要になり、アクセス先もhttp://example.jp/newblog.phpのようになるんですが、NP_CustomURLを使用している場合、アクセス先がhttp://example.jp/newBlog/と、サブディレクトリであるかのようなURLになり、しかも、アクセス用のファイルを作る必要がありません

これはNP_CustomURLの「ブログのショートネーム(またはNP_CustomURLの管理画面で設定した名前)をディレクトリ名のように表示して、その名前に関連付けられたブログを表示する」という機能に基づくものです
Read More No Comments yet.

OpenID を使ってログインすることができます。

Identity URL:



Web Services by Yahoo! JAPAN