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": [
|
"rewriteMap": [
|
||||||
{
|
{
|
||||||
"definingRegex": "/(\\/[^\\/.]+)\\.html?(?:$|[?#])/",
|
"definingRegex": "/(\\/[^\\/.?#]+)\\.html?(?:$|[?#])/",
|
||||||
"replacements": [
|
"replacements": [
|
||||||
{
|
{
|
||||||
"regex": "/(\\/[^\\/.]+)\\.html?($|[?#].*)/",
|
"regex": "/(\\/[^\\/.?#]+)\\.html?($|[?#].*)/",
|
||||||
"replacement": "$1.htm$2"
|
"replacement": "$1.htm$2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"definingRegex": "/(\\/[^\\/.]+)(?:$|[?#])/",
|
"definingRegex": "/(\\/[^\\/.?#]+)(?:$|[?#])/",
|
||||||
"replacements": [
|
"replacements": [
|
||||||
{
|
{
|
||||||
"regex": "/(\\/[^\\/.]+)($|[?#].*)/",
|
"regex": "/(\\/[^\\/.?#]+)($|[?#].*)/",
|
||||||
"replacement": "$1.html$2"
|
"replacement": "$1.html$2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Reference in a new issue