WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] .htaccess password protection breaks nested wordpress blogs (2 posts)

  1. cantonbecker
    Member
    Posted 5 years ago #

    Hi, I have three WordPress 2.5.1 blogs running on the same domain, and for the most part they work great. They are:

    http://cantonbecker.com/ (installed in root)
    http://cantonbecker.com/yellowish-macbook-display/

    and a 3rd WP blog, also installed in its own directory just like yellowish-macbook-display

    However the 3rd WP blog is password protected using .htaccess

    It was working great until I installed a blog at the root level of the whole domain. Now, I get a 404 when I try to access the 3rd WP blog.

    If I disable the .htaccess password protection, the 3rd blog comes back to life.

    Any ideas on why .htaccess password protection is breaking on a "nested" wordpress blog installation?

    BTW all 3 blogs use date/name URL rewriting mods.

  2. cantonbecker
    Member
    Posted 5 years ago #

    Super thanks to this page which provided a solution:

    http://www.andrewrollins.com/2008/01/22/wordpress-and-htaccess-password-protected-directories

    Basic gist is that you are obligated to define your own 401 redirect in your .htaccess if you want to password-protect a directory beneath a wordpress installation.

Topic Closed

This topic has been closed to new replies.

About this Topic