Skip to content

chore(.htaccess): 🧹 drop no-op QSA flag from RewriteRules#58870

Merged
come-nc merged 1 commit intomasterfrom
jtr/chore-root-htaccess-drop-noop-qsa
Mar 17, 2026
Merged

chore(.htaccess): 🧹 drop no-op QSA flag from RewriteRules#58870
come-nc merged 1 commit intomasterfrom
jtr/chore-root-htaccess-drop-noop-qsa

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

@joshtrichards joshtrichards commented Mar 11, 2026

  • Resolves: #

Summary

🧹

  • For Apache RewriteRule, if the substitution (right side) has no ? query part, the original query string is already preserved by default.
  • So QSA adds nothing in these rules.

Note for the future: QSA will be needed if we ever add a query string on the right (substitution) side. We don't currently so this is just noise in the htaccess rules.

https://httpd.apache.org/docs/trunk/rewrite/flags.html#flag_qsa
https://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule

P.S. In case it comes up, no current counterpart adjustments need to be made to our Nginx configuration at this time.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

- For Apache `RewriteRule`, if the substitution (right side) has no `?` query part, the original query string is already preserved by default.
- So `QSA` adds nothing in these rules.

Note for the future: QSA will be needed if we ever add a query string on the right (substitution) side. We don't currently so this is just noise in the htaccess rules.

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 34 milestone Mar 11, 2026
@joshtrichards joshtrichards requested a review from a team as a code owner March 11, 2026 14:59
@joshtrichards joshtrichards added the 3. to review Waiting for reviews label Mar 11, 2026
@joshtrichards joshtrichards requested review from icewind1991 and removed request for a team March 11, 2026 14:59
@joshtrichards joshtrichards added the technical debt 🧱 🤔🚀 label Mar 11, 2026
@joshtrichards joshtrichards requested a review from come-nc March 11, 2026 14:59
@come-nc come-nc merged commit b4f859b into master Mar 17, 2026
156 of 165 checks passed
@come-nc come-nc deleted the jtr/chore-root-htaccess-drop-noop-qsa branch March 17, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants