我不需要为我所有的旧产品 url 编写一个简单的重定向,而是需要一个重写规则来重定向几个具有非常相似 url 的链接,这些链接仅由一个用句点分隔的数字不同。下面的几个链接示例将全部重定向到一个 url。此外,“a131.1.html”中的字符大小写也应被忽略,而 i 仅用于文件名部分的目标 url。
site.com/product/cat/a131.1.html
site.com/product/cat/a131.2.html
site.com/product/cat/a131.3.html
site.com/product/cat/a131.4.html
...
site.com/product/cat/a131.30.html
to
new-site.com/101