Fix URL rewriting rules
This commit is contained in:
parent
2fb4ba6078
commit
05a30096c6
1 changed files with 4 additions and 4 deletions
|
@ -14,19 +14,19 @@
|
|||
],
|
||||
"rewriteMap": [
|
||||
{
|
||||
"definingRegex": "/(\\/[^\\/.]+)\\.html?(?:$|[?#])/",
|
||||
"definingRegex": "/(\\/[^\\/.?#]+)\\.html?(?:$|[?#])/",
|
||||
"replacements": [
|
||||
{
|
||||
"regex": "/(\\/[^\\/.]+)\\.html?($|[?#].*)/",
|
||||
"regex": "/(\\/[^\\/.?#]+)\\.html?($|[?#].*)/",
|
||||
"replacement": "$1.htm$2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"definingRegex": "/(\\/[^\\/.]+)(?:$|[?#])/",
|
||||
"definingRegex": "/(\\/[^\\/.?#]+)(?:$|[?#])/",
|
||||
"replacements": [
|
||||
{
|
||||
"regex": "/(\\/[^\\/.]+)($|[?#].*)/",
|
||||
"regex": "/(\\/[^\\/.?#]+)($|[?#].*)/",
|
||||
"replacement": "$1.html$2"
|
||||
}
|
||||
]
|
||||
|
|
Reference in a new issue