Support » Plugin: Private Uploads » Apache Config [Solved]

  • Resolved Enchiridion

    (@enchiridion)


    Here’s an equivalent rule for Apache to add to your existing rules:

    RewriteRule ^wp-content/uploads/(private)/(.*)$ /?pucd-folder=$1&pucd-file=$2 [L]

    Or you can copy/paste this entire block into your .htaccess file. Add before the ‘# BEGIN WordPress’ block:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    # Block unauthenticated user access to the /private/ uploads folder
    RewriteRule ^wp-content/uploads/(private)/(.*)$ /?pucd-folder=$1&pucd-file=$2 [L]
    </IfModule>
    • This topic was modified 3 years, 3 months ago by Enchiridion.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Apache Config [Solved]’ is closed to new replies.