服务器配置实现的apache 的话,配置文件里:查找DirectoryIndex index.html,在下面添加
DirectoryIndex index.htm
DirectoryIndex default.htm
DirectoryIndex default.html
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.cgi
DirectoryIndex index.htm
DirectoryIndex default.htm
DirectoryIndex default.html
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.cgi
解决方案 »
- php 日期搜索为什么不包括当天
- PHP压缩多个文件?
- SELECT count(`tieba_info`.*) as `total`,错误了 两个表关联排序 count 无效了。。出错,怎么解决?
- 一个不懂技术的主管?!
- phpcms2008sp4采集功能问题
- kodak6340支持jpeg2000吗
- 小弟新学php,遇到一小问题,请各位大虾指教:)
- IF的问题
- 一个电子商务系统,进入localhost的admin目录无法显示目录下的文件,而是直接跳到后台网站~
- 将数组中某一元素值相同的追加到该数组
- 分页传值
- 刚刚才学习php的时间函数。问一下,mktime(0,0,0,1,1,1970) 这个不是应该返回 0 吗? 为什么我测试返回 -32400, 这个数怎么来的?
apache参考http://faq.comsenz.com/viewnews-12
iis参考http://faq.comsenz.com/viewnews-11
虚拟主机的话,一般添加一个写有rewrite规则的.htaccess文件即可
在.Net下有组件可以达到URL转发的效果
只是我的php程序用的是虚拟主机,没权限动服务器配置
该怎么搞?
支持一下,虚拟主机都开放了.htaccess的