Fix URL rewriting rules

This commit is contained in:
Dorian Niemiec 2024-05-12 21:16:26 +02:00
parent 2fb4ba6078
commit 05a30096c6

View file

@ -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"
} }
] ]