首页 > 解决方案 > 将子文件夹重定向到索引

问题描述

我有以下网址

http://example.org/oldbutgold/1.html

http://example.org/oldbutgold/2.html

---

还有更多类似的情况,我想将这些链接重定向到:

http://example.org/goldies/

我怎么能做到?

感谢广告

标签: .htaccess

解决方案


刚刚找到解决方案

RedirectMatch 301 ^/oldbutgold(.*)$ http://example.org/goldies/

推荐阅读