【发布时间】:2013-09-16 01:51:23
【问题描述】:
我的 Apache 2.2 在端口“8080”上运行我想调用我的站点 URL http://www.example.in:8080/abc/xyz.html/index.php(xyz.html 是一个文件夹)
作为 ....
http://www.example.in:8080/abc/xyz.html
谁能帮我解决这个问题的.htaccess ..
注意:
1) example.in:8080/abc/xyz.html/ 没问题,但我想避免最后的“/”。
2) 我想避免 DirectorySlash Tried DirectorySlash Off in .htaccess 导致 xyz.html 文件夹列表。
3) 尝试了 DirectorySlash off 和 Options -indexes RESULTED 403 Forbidden Error
4) 尝试使用 DirectoryIndex index.php 结果在输入“/”时有效,但在没有“/”列出内容的情况下无效...
任何人都可以帮助我使用 .htaccess 代码吗?在此先感谢。
【问题讨论】:
标签: apache .htaccess mod-rewrite directoryindex