• Hi there,

    I’m having a problem with password protected pages. I’m using a child theme based on the_bootstrap.

    When I try to password protect a page, i get a 404 (“well, this is embarrassing, isn’t it…”)

    The URL shows as /wp-pass.php. I have tried to change my functions.php file so that instead of going to /wp-pass.php, it goes to /wp-login.php?action=postpass instead, but that didn’t work either. The URL showed up correctly — /wp-login.php?action=postpass, but I still got a 404.

    Finally, I should mention that I installed WP in a subdirectory originally, and have used the WP instructions here https://codex.www.ads-software.com/Moving_WordPress to move the directory to the root.

    Here is what’s in my .htaccess file on the root level:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    And here’s what’s in my .htaccess file in my WP subdirectory folder:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /2014/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /2014/index.php [L]
    </IfModule>

    # END WordPress

    Can anyone help? I really need to be able to password protect pages for this site.

    Thanks!!

  • The topic ‘Password Protected Pages’ is closed to new replies.