[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[adiary-users 0068] シングルユーザーの挙動について
- From: hitoxu <hitoxuml@xxxxxxxxxx>
- Date: Mon, 14 May 2007 16:25:01 +0900
お世話になります。ひとぅです。
シングルユーザー、mod_rewriteモードで利用する場合、
1番目の記事を表示させたい場合
http://xxx.com/01
となるところ、
http://xxx.com/adiary.cgi/01
となっています。
ログインなどのリンクはadiary.cgiは表示されていないのですが、
なぜでしょうか?
とりあえずBase.pmの
199行目あたりの
if (!exists $self->{Myself}) {
if ($mod_rewrite) {
$self->{Myself} = $self->{Myself2} = $basepath;
} elsif (substr($req_uri, rindex($req_uri, '/')+1) eq $file) { #
cgi
$self->{Myself} = $basepath . $self->{Cgifile};
$self->{Myself2} = $basepath . $self->{Cgifile} . '/'; #
PATH_INFOp
} else { # cgi DirectoryIndex
$self->{Myself} = $basepath;
$self->{Myself2} = $basepath . $self->{Cgifile} . '/'; #
PATH_INFOp
}
}
を
if (!exists $self->{Myself}) {
if ($mod_rewrite) {
$self->{Myself} = $self->{Myself2} = $basepath;
} elsif (substr($req_uri, rindex($req_uri, '/')+1) eq $file) { #
cgi
$self->{Myself} = $self->{Myself2} = $basepath;
} else { # cgi DirectoryIndex
$self->{Myself} = $self->{Myself2} = $basepath;
}
}
として退避しましたが、
うまくmod_rewriteというのを認識できていないのでしょうか?
お手数ですがよろしくお願いします。
=====
adiary1.311
XREA+
Prel4