【发布时间】:2011-02-04 23:15:41
【问题描述】:
我无法访问 httpd.conf。如果类型一个文件夹更像 -> http://www.example.com/folder/folder2/ --> 将 404 重定向到主页,我如何重定向用户。
用户应该只能访问这个根http://www.example.com/link+custom1+custom2/
如果他们输入类似 http://www.example.com/link+custom1+custom2/onemorefolder/orTwo/ 的内容 --> 重定向
我怎样才能只使用 .htaccess 而没有 php?
【问题讨论】: