Skip to content

Conversation

@lpcvoid
Copy link

@lpcvoid lpcvoid commented Dec 22, 2025

Currently, the updateHtaccess() function can't deal with a missing .htaccess file, it assumes at least an empty .htaccess file.

In some cases, the file may be missing though, and this PR adds functionality for creating it when this edgecase occurs.

Before this PR, executing occ maintenance:update:htaccess can fail without the error message being explicit about this edgecase.

  • Resolves: # Many issues that complain about occ maintenance:update:htaccess not working.

Summary

occ maintenance:update:htaccess can now also create .htaccess files, instead of relying on them being present.

TODO

  • Nothing I can think of

Checklist

Currently, the updateHtaccess() function can't deal with a missing
.htaccess file, it assumes at least an empty .htaccess file.

In some cases, the file may be missing though, and this commit
adds functionality for creating it when this edgecase occurs.

Signed-off-by: Marc <[email protected]>
@lpcvoid lpcvoid requested a review from a team as a code owner December 22, 2025 11:12
@lpcvoid lpcvoid requested review from ArtificialOwl, come-nc, nfebe and provokateurin and removed request for a team December 22, 2025 11:12
This adds a hint to the error message that file creation may also
have failed.

Signed-off-by: Marc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant