[fr] Un des derniers problèmes qui me résistent sur le nouveau serveur.
Here’s roughly what I wrote in a support ticket I sent Dreamhost this morning. If you have any suggestions, I’ll take them.
> Hello,
> I have a site http://cafecafe.ch on which I have installed wordpress
(http://cafecafe.ch/wp/ -> displays as http://cafecafe.ch/blog with
Filosofo Homepage-Control plugin).
> That server has a subdirectory http://cafecafe.ch/membres/ which is
password-protected using .htaccess. Inside is another wordpress
install http://cafecafe.ch/membres/wp.
> I had this set up on my previous host and it worked fine.
> Now, if I go to http://cafecafe.ch/membres/ the request is caught be
the blog installed in http://cafecafe.ch/wp/, and I’m shown the page
http://cafecafe.ch/blog/.
> To make sure it wasn’t a conflict between the two wordpress installs,
I created an empty directory http://cafecafe.ch/test/ which I tried to
password-protect in the same way. The problem is the same (going to
http://cafecafe.ch/test/ displays http://cafecafe.ch/blog). If I
comment out the “request valid-user” line of the .htaccess, I get to
see the directory listing.
> Similarly, if I come back to http://cafecafe.ch/membres and comment
out that line in .htaccess, both wordpress installs work fine, with
permalinks and all (only the private blog isn’t protected anymore,
which won’t do it).
> I’ve tried not doing the password protection manually, and using what
is provided in the panel for that, but the problem remains exactly the
same.
> Weird, isn’t it?
> Hope you can help me out on this. Tried checking error logs but they
were empty.
tu a
je disais donc… tu as installé WP à la main ou tu as profité du one-click-install de DreamHost ?
Installation à la main.
I have php running as CGI. could that be the problem?
Try shoving this in the parent .htaccess
RewriteCond %{REQUEST_URI} ^/membres.$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.$ – [L]
Ok, if someone finds this site looking for a solution, trying adding ErrorDocument 401 “Unauthorized access” at the top of the subdirectory .htaccess file. You can read more about this issue at
http://www.andrewrollins.com/2008/01/22/wordpress-and-htaccess-password-protected-directories/
Grimboy,
What do you mean by parent .htaccess? The .htaccess file which is under http://cafecafe.ch or http://cafecafe.ch/wp?