我用的Apache和php的搭配,在我的www的目录下有个文件夹admin ,admin夹下有个profile.html文件。我想实现输入http://localhost/admin ,就直接打开了profile.html文件,换句话说,要实现访问如下两个地址,能看到同一个页面(profile.html)的功能:
1、http://......./admin/
2、http://......./admin/profile.html 。有知道怎么做的吗?谢谢了。
1、http://......./admin/
2、http://......./admin/profile.html 。有知道怎么做的吗?谢谢了。
DirectoryIndex profile.html index.php
</IfModule>
改了配置了,但是我输入http://localhost:8080/admin,会自动改成http://localhost:8080/admin/的形式,而且我看到的是文件目录的形式啊。
Index of /admin * Parent Directory
* profile.html
Index of /admin * Parent Directory
* profile.html
怎么回事啊?
找下看有没有host.conf的文件.