Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
7 years ago
Commit
d533f7dabb10d8af73e19009acabef2fbcdba79c
1 parent
23112e92
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
doraemon/middleware/htaccess/rules/item.js
doraemon/middleware/htaccess/rules/item.js
View file @
d533f7d
...
...
@@ -33,17 +33,17 @@ module.exports = [
origin
:
/^
\/
p
([\d]
+
)
.html
(
.*
)
/
,
target
:
(
req
,
match
,
p1
,
p2
)
=>
{
req
.
mobileUrl
=
`
$
{
MOBILE_DOMAIN
}
/product/
pro_$
{
p1
}
_1
/
1
.
html$
{
p2
?
p2
:
''
}
`
;
return
`
/
product$
{
req
.
url
}
`
;
return
helpers
.
urlFormat
(
`
/
product
/
$
{
p1
}.
html$
{
p2
?
p2
:
''
}
`
,
null
,
'www'
)
;
}
},
// 商品详情页新链接
{
type
:
TYPE
.
re
write
,
type
:
TYPE
.
re
direct
,
origin
:
/^
\/([\d]
+
)
.html
(
.*
)
/
,
target
:
(
req
,
match
,
p1
,
p2
)
=>
{
req
.
mobileUrl
=
`
$
{
MOBILE_DOMAIN
}
/product/
$
{
p1
}.
html$
{
p2
?
p2
:
''
}
`
;
return
`
/
product$
{
req
.
url
}
`
;
return
helpers
.
urlFormat
(
`
/
product$
{
req
.
url
}
`
,
null
,
'www'
)
;
}
}
];
...
...
Please
register
or
login
to post a comment