想自动执行index.php,在apache的httpd.conf里设过DirectoryIndex,不管用??我刚装上DEDECMS,,,点显示首页,能自动找到,,但是点别的栏目,比如http://127.0.0.1/Dedecms/ask 就无法显示了.必须手动改成http://127.0.0.1/Dedecms/ask/index.php才行....还有,这个时候返回首页,也无法显示了.....我在在apache的httpd.conf里设过DirectoryIndex,<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.php3
</IfModule>但不管用???还要设哪吗??
谢谢各位老师~~
DirectoryIndex index.html index.htm index.php index.php3
</IfModule>但不管用???还要设哪吗??
谢谢各位老师~~
解决方案 »
- php 能不能做到让客户端隔离
- Apache 不能启动.MYSQL正常.请热心人回答.
- 这个字段要放到where中查询,是不是应该加入一般索引
- 关于 name="num[]" 的提问,请高手解下
- 图片抓取失败问题
- 在线等求php生成pdf成功例子.~~
- 初用php碰到又低级又头痛的问题,谁遇到过??
- mysql的软件包里哪个是关闭主程序的啊 那个shutdown不管用啊
- 昨天的那个文本计数器非常不好用,谁有好用的文本计数器(通过htm调用php计数器的那种),能否共享源码?谢谢。
- php+Uploadify在win7下安装配置好了,也可以正常运行,但在linux下无法上传
- 二维数组的问题,在线等
- 用php导出excel数据
DirectoryIndex index.html index.htm index.php index.php3
</Directory>
或者虚拟主机的配置里加.
在apache的配置文件查找DirectoryIndex應該可以找到上面的行,加上後面的index.php index.php3
<IfModule mod_dir.c>
</IfModule>然后重启apache
DocumentRoot d:/web/root/
ServerName l
ErrorLog logs/l_error_log
CustomLog logs/l-access_log common
<Directory "d:/web/root/">
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost><Directory "d:/web/root/">
Options Indexes MultiViews
DirectoryIndex index.php
AllowOverride None
Order allow,deny
Allow from all
</Directory>