Htaccess字符串完全字符串匹配

时间:2017-04-18 19:49:35

标签: apache .htaccess

我有一个小问题,我有两个相似的网址需要单独的重定向,有没有办法确保htaccess文件中的完全匹配?

E.G  /鸭  和  / duckcat

我们已经尝试将/ duckcat放在/ duck之上但是,我们通过/ duck匹配/ duckcat接收用户的匹配 编辑:

RewriteRule ^/duckcat  http://www.store.com/store/xx/stores/duckcat   [R=301,NC,L]
RewriteRule ^/duck  http://www.store.com/store/xx/stores/duck   [R=301,NC,L]

在上面的示例中,如果用户从duckcat进入,他们在duckcat上匹配。

0 个答案:

没有答案
相关问题