【发布时间】:2015-11-13 13:13:33
【问题描述】:
我想知道如何过滤掉多个 URL 列表,并重定向到一个页面。
例子:
www.domain.de/notuse/seite1.html
www.domain.de/dir1/notuse/seite1.html
www.domain.de/dir1/dir2/notuse/seite1.html
我现在想要“notuse”已过滤,因为我是初学者,我不确定这是否正确:
RedirectMatch permanent ^.+notuse/ http://www.domain.de/new-directory/index.html
你有什么建议?
【问题讨论】:
标签: apache .htaccess redirect directory