Many development and staging sites want to restrict total access to the site’s folder on the webserver. One of the easiest ways to do this is by setting a UNIX password at the server level.
This advanced developer recipe shows you how to set up custom
.htaccess rules to allow your Webhook or IPN data through this security measure. This will allow you to properly configure and test payment gateways in Paid Memberships Pro.
If you’re migrating from s2member to Paid Memberships Pro, here’s one additional step needed to ensure PayPal IPN data is sent and updated within PMPro.
Customize and add this code to your theme’s functions.php file or a helper PMPro Customizations plugin (our recommended method).
The code would be very similar for other membership plugins. If you need help crafting this IPN redirect for another plugin migration, post to the member forums.