Forums

Password protected directory and pages error 404 (2 posts)

  1. LizzyFin
    Member
    Posted 3 years ago #

    After updating to 2.5.1 it seems that passwords have 2/3 failed. The manage posts page shows which posts are protected with passwords and indeed these posts are password protected. The passwords work as intended for posts, but not for pages or a directory at the same level as the blog.

    Pages that have assigned passwords do not act like they have passwords in that the visitor is not presented with a password prompt. Deleting a password while editing a page and then re-assigning a new password did not protect the post.

    I don't know if this is related or not, but this same blog
    (installed at the root) continues to give the 'page not found' error when trying to go to a file inside a password-protected directory at the root level.

    htaccess file at the root:

    ErrorDocument 401 /home/piedmont/public_html/401.html
    ErrorDocument 403 /home/piedmont/public_html/403.html
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    htaccess file in the protected directory [docs]:

    AuthType Basic
    AuthName "Member Documents"
    AuthUserFile "/home/piedmont/.htpasswds/public_html/docs/passwd"
    require valid-user

    Removing the [docs] folder password protection via CPanel no longer lets me retrieve documents from that folder. WordPress responds with the generic 'post not found' error.

    I'm ready to do something radical like revert back to 2.3 or re-install WP. What do you suggest? Any help is appreciated!

  2. seg
    Member
    Posted 3 years ago #

    For the last issue you mentioned try this:
    http://wordpress.org/support/topic/204514?replies=4

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.