Need help with a webhook question.
I'm following advice and trying to streamline the sync on my grav site so that only the /user folder is synced ffrom local to github and thence to production via a webhook. But I keep getting a 301 From github when the webhook tries to deliver the payload.
I found this in my htaccess
# Block access to specific file types for these user folders
RewriteRule ^(user)/(.*)\.(txt|md|yaml|php|pl|py|cgi|twig|sh|bat)$ error [F]
And I'm thinking, maybe that's it, because the webhook is a PHP file.
So, questions:
- Can I bypass that rule for a very specific URL to the webhook.php file? (How?)
- Is there some better way of doing what I want?
Thanks.