Hairy .htaccess Dreamhost WordPress Problem

[fr]

Un des derniers problèmes qui me résistent sur le nouveau serveur.

[en]

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.

Similar Posts:

This entry was posted in Wordpress and tagged directory, dreamhost, Geek / Technical, htaccess, password, problem, protect, server, Wanted, Weblog Technology, Wordpress. Bookmark the permalink.

11 Responses to Hairy .htaccess Dreamhost WordPress Problem

  1. Somebaudy says:

    je disais donc… tu as installé WP à la main ou tu as profité du one-click-install de DreamHost ?

  2. Somebaudy says:

    je disais donc… tu as installé WP à la main ou tu as profité du one-click-install de DreamHost ?

  3. Stephanie says:

    Installation à la main.

  4. Stephanie says:

    Installation à la main.

  5. Stephanie says:

    I have php running as CGI. could that be the problem?

  6. Grimboy says:

    Try shoving this in the parent .htaccess

    RewriteCond %{REQUEST_URI} ^/membres.$ [OR] RewriteCond %{REQUEST_URI} ^/failed_auth.html$ RewriteRule ^.$ – [L]

  7. Stephanie says:

    I have php running as CGI. could that be the problem?

  8. Grimboy says:

    Try shoving this in the parent .htaccess


    RewriteCond %{REQUEST_URI} ^/membres.$ [OR]
    RewriteCond %{REQUEST_URI} ^/failed_auth.html$
    RewriteRule ^.
    $ – [L]

  9. Jay Scott says:

    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/

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>