【发布时间】:2014-07-18 13:07:10
【问题描述】:
我需要使用 htacess 重定向这个 URL:
来自:http://example.com/city/Chennai/search/search_display_event_type/category1
对此:http://example.com/chennai/category1
有什么方法可以在 htacees 中编写,像下面的 url 一样重定向 http://example.com/(钦奈|浦那|孟买)/category1
我知道这很难,但我真的不确定哪种规则适用于此。 因为我不想为城市变化编写相同的代码行,所以我想要 htaccess 中的数组匹配之类的东西。
非常感谢任何帮助!
【问题讨论】:
标签: apache .htaccess redirect dynamic url-redirection