元々はお名前VPS(http://www.onamae-server.com/vps/)のコントロールパネルでドメインの設定を行っていたのですが、自分でディレクトリを操作するため「httpd.conf」に「VirtualHost」で設定を行った所、今まで使えていた「.」や「_」がmod_rewriteでディレクトリの先頭に利用できなくなりました。
具体的には・・
RewriteRule character_list/(.*)? /.character/list.php?dtb=character&list=$1 [QSA,L]
と設定すると指定の「list.php」を読み込まず404エラー扱いになります。
ちなみに「.」が全く利用できないわけではなく以下のように後ろに持ってきた場合は正常に表示されます。
RewriteRule character_list/(.*)? /character./list.php?dtb=character&list=$1 [QSA,L]
↓↓↓補足に続く↓↓↓
また「.」や「_」があってもアクセスは正常に可能です。
Virtual Hostの設定は以下のとおりです。
<VirtualHost 211.125.83.51:80>
ServerAdmin xxxx@xxxx.co.jp
DocumentRoot /var/www/vhosts/xxxx.jp/httpdocs/
ServerName xxxx.jp
ErrorLog logs/xxxx.jp-error_log
CustomLog logs/xxxx.jp-access_log common
<Directory "/var/www/vhosts/xxxx.jp/httpdocs/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Options +ExecCGI
AddType application/x-httpd-cgi .cgi
</Directory>
</VirtualHost>
ご教授のほど宜しくお願い致します。
コメント(0件)