...
|
...
|
@@ -27,7 +27,7 @@ module.exports = [ |
|
|
target: (req, match, p1) => helpers.urlFormat(`/p${p1}.html`, null, 'item')
|
|
|
},
|
|
|
|
|
|
// 商品详情页新链接
|
|
|
// 商品详情页老链接
|
|
|
{
|
|
|
type: TYPE.rewrite,
|
|
|
origin: /^\/p([\d]+).html(.*)/,
|
...
|
...
|
@@ -35,5 +35,14 @@ module.exports = [ |
|
|
req.mobileUrl = `${MOBILE_DOMAIN}/product/pro_${p1}_1/1.html${p2 ? p2 : ''}`;
|
|
|
return `/product${req.url}`;
|
|
|
}
|
|
|
},
|
|
|
// 商品详情页新链接
|
|
|
{
|
|
|
type: TYPE.rewrite,
|
|
|
origin: /^\/([\d]+).html(.*)/,
|
|
|
target: (req, match, p1, p2) => {
|
|
|
req.mobileUrl = `${MOBILE_DOMAIN}/product/${p1}.html${p2 ? p2 : ''}`;
|
|
|
return `/product${req.url}`;
|
|
|
}
|
|
|
}
|
|
|
]; |
...
|
...
|
|