We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf5247 commit 9add4caCopy full SHA for 9add4ca
src/app.lua2p
@@ -1761,7 +1761,7 @@ local function buildWebsite()
1761
targetUrl = fixRelativeUrl(targetUrl)
1762
1763
b('\tRewriteCond %%{REQUEST_URI} "=%s"\n', url)
1764
- b('\tRewriteRule .* "%s" [R=301,L]\n', escapeRuleSub(targetUrl))
+ b('\tRewriteRule .* "%s" [NE,R=301,L]\n', escapeRuleSub(targetUrl))
1765
end
1766
1767
for url, targetUrl in pairsSorted(site._unwrittenRedirects) do
@@ -1784,7 +1784,7 @@ local function buildWebsite()
1784
1785
1786
b(
1787
- '\tRewriteRule .* "%s%s" [R=301,L]\n',
+ '\tRewriteRule .* "%s%s" [NE,R=301,L]\n',
1788
escapeRuleSub(targetUrl),
1789
(not query or targetUrl:find("?", 1, true)) and "" or "?"
1790
)
0 commit comments