【发布时间】:2014-08-16 05:21:46
【问题描述】:
我想将 403 页面(子文件夹/)(选项 -Indexes)重定向到其主/上文件夹。
示例原始网址>
example.com/photos/artist/name/events.html(“name”文件夹包含许多“events”html文件)
但访客不知何故登陆>
example.com/photos/artist/name/events/
我可以在 .htaccess 中添加以下行 ..
Redirect /photos/artist/name/events/ http://example.com/photos/artist/name/events.html
但问题是 /name/* 中有许多事件 html 文件,它不仅适用于该目录,还适用于其他 /artist/name1 、 /artist/name2 等
/artist
/name1
/events1, 2, 3,.. .html
/name2
/events1, 2, 3,.. .html
我想喜欢..当访客登陆时
example.com/photos/artist/name/events/> 这个需要重定向到
example.com/photos/artist/name/
这可能吗?
我在下面尝试过,403 最终出现内部错误..
Redirect /photos/artist/*/*/ /photos/artist/*/
我不是这个领域的专家,所以希望我的问题可以理解..
谢谢。
【问题讨论】: