htaccess文件中的RedirectMatch 301

时间:2013-12-13 10:47:11

标签: .htaccess redirect

任何人都可以告诉我它是什么吗

RedirectMatch 301 /([a-zA-Z_]+)-(\d+)-(\d+)-1-([a-z]+)-([a-zA-Z_]+).html http://www.example.com/$1-$2-$3-$4-$5.html

表示.htaccess文件??

1 个答案:

答案 0 :(得分:0)

此正则表达式正在搜索: [anyChars and _] - [digits] - [digits] -1- [smallChars and _] - [anyChars and _]。html 并重定向浏览器。例如:

* AAAA-1234-567-1-BBB-cC_c.html * 将被重定向到: * http://www.example.com/aaAA-1234-567-bbb-cC_c.html *

此外,这是一项测试RegEx的优质服务:http://gskinner.com/RegExr/

相关问题