Skip to content

Conversation

@backportbot-nextcloud
Copy link

Backport of #10602

Jakuje and others added 2 commits June 15, 2023 22:50
The `.htaccess` rules should not have the starting slash otherwise they
will never get matched. When running the mod_rewrite in .htaccess, the
path is already sanitized and leading slashes stripped.

Document also that this is not the case when the rules are used directly
from the main apache2 configuration the leading slash is present always,
which led to some edit wars of this documentation in the past as it was
not well explained (#8093, #3811).

This matches the code shipped with the .htaccess in the nextcloud server:
https://github.com/nextcloud/server/blob/master/.htaccess

Signed-off-by: Jakub Jelen <jakuje@gmail.com>
Co-authored-by: MichaIng <micha@dietpi.com>
Signed-off-by: Jakub Jelen <jakuje@gmail.com>
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 27.0.1 milestone Jun 15, 2023
@MichaIng MichaIng merged commit cdac6dc into stable27 Jun 15, 2023
@MichaIng MichaIng deleted the backport/10602/stable27 branch June 15, 2023 23:09
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.

3 participants