服务器配置实现的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
解决方案 »
- 在WAMPServer环境下调用SpawEditor总报错,不知如何正确设置访问路径
- php smart 模板的简单问题
- php 生成浏览器窗口缩略图怎么生成?
- PHP怎么样与数据库连接
- js在foxmail里不能使用?
- 今天去校园招聘,没一个要PHP的,郁闷
- 太高兴了,我刚申请到了免费的mysql数据库和php空间,还搭了一个论坛
- 求一个替换字符串的正则表达式
- 用php做收发html邮件和带附件的邮件系统,怎么做?
- 一个题外话
- 分页传值
- 刚刚才学习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的