Here’s how to make our Prevent Direct Access (PDA) Gold work properly on Kinsta who uses Nginx webserver to power its hosting.
Add PDA Gold Redirect Rules
- Log into your Kinsta
- Select your domain, then click on “Redirects”
- Add these 2 new redirect rules as follows:
Private links
Redirect From: ^/private/([a-zA-Z0-9-_]+)$
Redirect To: /index.php?pda_v3_pf=$1&pdav3_rexypo=ymerex
^/private/([a-zA-Z0-9-_]+)$
/index.php?pda_v3_pf=$1&pdav3_rexypo=ymerexy
Protected links:
Redirect From: ^/wp-content/uploads(/_pda/.*\.\w+)$
Redirect To: /index.php?pda_v3_pf=$1
^/wp-content/uploads(/_pda/.*\.\w+)$ /index.php?pda_v3_pf=$1
There you go. Now our PDA Gold should work properly on your Kinsta-hosted website.
If you’ve changed Prefix for Private URL on our PDA Gold Settings page, you need to replace the word private
accordingly