发现.htaccess一个很奇妙的问题,

zhuayi 2009-11-01 01:28:01
http://news.v0913.com
http://news.v0913.com/index.shtml

第一个直接访问到频道目录

第二个却访问到主目录下的shtml。。。

我是用htaccess 绑定的域名


RewriteCond %{HTTP_HOST} ^news.v0913.com$
RewriteCond %{REQUEST_URI} !^/news/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /news/$1
RewriteCond %{HTTP_HOST} ^news.v0913.com$
RewriteRule ^(/)?$ news/index.shtml [L]


apache是


<VirtualHost *:80>
DocumentRoot "e:\v0913.com"
ServerName www.v0913.com
ServerAlias *.v0913.com
<Directory "e:\v0913.com">
allow from all
Options -Indexes
</Directory>
</VirtualHost>


哪位高手能帮我解决下
...全文
63 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧