WordPress.org

Ready to get started?Download WordPress

Forums

multisite htaccess-protect one blogs.dir subfolder (2 posts)

  1. KWentin
    Member
    Posted 2 years ago #

    hello!

    once again, i'm asking for help!

    the uploads of a new site in my multisite installation should be htaccess protected, all the files are in /wp-content/blogs.dir/19 whereas 19 is the id of the new site.

    if i put a .htaccess file in the /19 directory it looks like it is ignored by the server as in there's no authentication needed. i only need to prevent unauthorized people from accessing the content of this folder (including subfolders), not of all the other blogs.

    i checked the main .htaccess file and part of the original .htaccess content for the multisite installation is this line:

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    is this the reason why it's not working to put a .htaccess file in this ../19/ folder?

    i thought this should work without a problem, but alas, i have one.

    any ideas? thanks so much in advance!

    bye,
    kwentin

  2. Ugh, yeah, I can see that being a problem. Does it fail to work on BOTH the /files/ call to those images and the /blogs.dir/19 ?

Topic Closed

This topic has been closed to new replies.

About this Topic