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:
Redirect From: ^/private/([a-zA-Z0-9-_]+)$
Redirect To: /index.php?pda_v3_pf=$1&pdav3_rexypo=ymerex
Redirect From: ^/wp-content/uploads(/_pda/.*\.\w+)$
Redirect To: /index.php?pda_v3_pf=$1
- You may want to escape special characters such as /private\/ or ^\/wp-content/
- You don’t have to implement our rewrite rules under Kinsta’s Nginx config file, i.e. nginx_custom.conf
There you go. Now our PDA Gold should work properly on your Kinsta-hosted websites.
If you’ve changed Prefix for Private URL on our PDA Gold Settings page, you need to replace the word
Don’t forget to clear cache if you’re enabling CDN and/or Site cache.