Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Regular expression support for simple rewrite rule #2082
1. What does this change do, exactly?
Sample wordpress config can become a one liner.
2. Please link to the relevant issues.
No issues reported. Noticed the trend from users' Caddyfiles.
3. Which documentation changes (if any) need to be made because of this PR?
Indication of regexp support and an additional option
I'm only reading this now, just asking so I understand; I have the following currently for most of my sites:
With this change, I could now shorten it to the following, correct?
Is that right? Was the above not possible before?
@francislavoie yeah, that is correct.
@mholt it is not 100% backward compatible,
My argument is that the one-liner should be a sensible default and people should only open a config block for more control, but what is currently happening is no one is using the one liner and many people open a config block to only use regex.