Skip to content

Fix ACME RewriteRule pattern in .htaccess recipe#686

Open
deprrous wants to merge 1 commit into
apache:trunkfrom
deprrous:pr/httpd-acme-htaccess-pattern
Open

Fix ACME RewriteRule pattern in .htaccess recipe#686
deprrous wants to merge 1 commit into
apache:trunkfrom
deprrous:pr/httpd-acme-htaccess-pattern

Conversation

@deprrous

Copy link
Copy Markdown

The ACME exemption example is chained from the .htaccess HTTPS redirect recipe in this file.

In per-directory context, RewriteRule matches the path without a leading slash, so ^/\.well-known/acme-challenge/ does not match ordinary ACME challenge requests there. Dropping the leading slash makes the exemption line up with the .htaccess context described above it.

Copilot AI review requested due to automatic review settings July 26, 2026 11:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the mod_rewrite documentation to correct an .htaccess example so ACME HTTP-01 challenge requests are properly exempted from an HTTP→HTTPS redirect in per-directory (.htaccess) context.

Changes:

  • Fix the ACME exemption RewriteRule pattern by removing the leading /, aligning it with .htaccess (per-dir) path matching behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants