• Resolved zackisaiah

    (@zackisaiah)


    I’ve got permalinks set up on my site so it looks like this:

    http://www.mysite.com/events/specific_event/

    I’d like to password-protect the /events/ directory and everything below it using .htaccess. I can create users using my server control panel, and I’m able to update the .htaccess file. Am I going about this correctly? (I’m looking for tips before I go in and mess everything up.)

    Also, this is a long-shot, but how would one go about setting up the site so the wordpress usernames/passwords are used to access those htaccess password-protected directories?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Also, this is a long-shot, but how would one go about setting up the site so the wordpress usernames/passwords are used to access those htaccess password-protected directories?

    You dont, especially if you are looking for a solution where logging in allows you to bypass Apache’s mod_auth mechanism, which is what you are actually using. Apache is always going to have its own pop up prompt asking for authentication when using mod_auth.

    You can, however generate matching passwords for users, but if you have a fair amount of them, that might get tedious.

    Here is a good starting point:
    http://www.google.com/search?hl=en&q=htpasswd+generator&btnG=Google+Search

    Thread Starter zackisaiah

    (@zackisaiah)

    Matching the usernames and passwords is not a priority.

    The real question:

    Is there a way to password-protect a parent page and all child pages?

    Or, can I protect the /events/ “directory” with apache and have the contents generated by WordPress?

    I’m sort of in the same boat. I have permalinks turned on but i’d like to give a client access to a sub-directory like example.com/client/ but it keeps redirecting to index.php instead of displaying an index of the /client directory.

    Is there a workaround for this?

    Thread Starter zackisaiah

    (@zackisaiah)

    A new plugin was released that handles password protection perfectly: Role Scoper by Kevin Behrens.

    http://agapetry.net/category/plugins/role-scoper/

    Create user groups, then allow the group to access a specific password-protected page and all child pages. Incredible!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalinks, passwords and .htaccess’ is closed to new replies.