标题: 用ZF为什么我访问时必须要用index.php才行呢?
abcd86
新手上路
Rank: 1



UID 2040
精华 0
积分 0
帖子 3
翻译 0
原创 0
阅读权限 10
注册 2008-9-4
状态 离线
发表于 2008-9-26 15:54  资料  短消息  加为好友 
用ZF为什么我访问时必须要用index.php才行呢?

系统是 WIN XP SP3。
用的是 Apache-2.2.6 + PHP-5.2.5 + Mysql Server 6.0 + Zend Framework-1.6.1
服务器的根目录是:D:/www/zf
此目录下是这样的,如下:

| Application
-| Config.ini
-| Controllers
-| Models
-| Views
   -| scripts
     -| index
| Library
-| Zend
| Public
-| Css
-| Images
-| Js
-| index.php
-| .htaccess

出现的问题是,在访问的时候:

        http://localhost/public/                                        能访问
        http://localhost/public/index.php                   能访问
        http://localhost/public/index.php/index/add    能访问
        http://localhost/public/index/index/add          不能访问  404错误
        http://localhost/public/index/add                   不能访问  404错误
        http://localhost/public/add                           不能访问  404错误

请问是怎么回事,那里出错了。如果需要什么文件的内容。直接告诉我,我好帖上来。先谢谢大家了。

[ 本帖最后由 abcd86 于 2008-9-26 15:57 编辑 ]

顶部
abcd86
新手上路
Rank: 1



UID 2040
精华 0
积分 0
帖子 3
翻译 0
原创 0
阅读权限 10
注册 2008-9-4
状态 离线
发表于 2008-9-26 18:15  资料  短消息  加为好友 
已解决。。。。。。。 :loveliness: :loveliness: :loveliness: :loveliness:

顶部
 


PHPEye开源社区


当前时区 GMT+8, 现在时间是 2008-12-3 06:41

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.048388 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - PHPEye开源社区 - Archiver