Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: privacy issues


dainismichel
Participant

@dainismichel

Hiya, here’s what I’m trying. I’d like to password protect my entire BuddyPress install with one username and password (I’ll change it from time to time).

Here’s BuddyPress’s htaccess file


RewriteEngine On

RewriteBase /community/

#uploaded files

RewriteRule ^(.*/)?files/$ index.php [L]

RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

# add a trailing slash to /wp-admin

RewriteCond %{REQUEST_URI} ^.*/wp-admin$

RewriteRule ^(.+)$ $1/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule . – [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

RewriteRule . index.php [L]

<IfModule mod_security.c>

<Files async-upload.php>

SecFilterEngine Off

SecFilterScanPOST Off

</Files>

</IfModule>


To which I tried to add:

AuthType Basic

AuthUserFile /home/username/sitename.org/subdirectory/.htpasswd

AuthName “Community Name”

require valid-user


and I made a .htpasswd file too.


Possibly because I installed into a subdirectory of an exising WP install, it winds up going to sitename.org and nothing is protected.

I will try the whole thing in subdomain.domain.org to see if I can get the htaccess stuff to work.

So, can anyone point out how I can just password protect the whole BuddyPress site with one username and password?

Skip to toolbar