WordPress.org

Forums

password protection (not blog related) (5 posts)

  1. phfreq
    Member
    Posted 10 years ago #

    I'm trying to password protect a directory on my site that is located in the same root directory as wordpress. However once I get it protected, the directory just redirects to my main website. It never prompts for a password.

    Same thing if I just type like mysite.com/blahblahdoesntexist
    or something, it doesn't give a 404, just redirect to main site.

    I suspect this has something to do with wordpress' .htaccess file. Could someone shed some light on this?

  2. Samuel B

    Posted 10 years ago #

    Basically you will need to add code above the WP statements in .htaccess.
    Also, you'll need a .htpasswd file.
    This should get you started:
    https://www.warped.com/dox/index.php?title=How_do_I_password-protect_one_of_my_HTML_directories%3F
    http://www.javascriptkit.com/howto/htaccess3.shtml
    http://tools.dynamicdrive.com/password/

  3. phfreq
    Member
    Posted 10 years ago #

    well I know how to password protect, but the problem is that wordpress seems to be overriding it, and redirecting, instead of allowing the login prompt.

  4. phfreq
    Member
    Posted 10 years ago #

    I've found a few solutions to this problem.. but none of them seem to work for me. :(

    Here is exactly what my problem is, but this hack doesn't fix it; http://incoherently.net/archives/2006/02/14/wordpress-and-secure-directories-fix/

  5. stephenju
    Member
    Posted 10 years ago #

    I had the password protection issue and find a fix (actually, 2 fixes). It's documented here:
    http://www.ju-ju.com/2006/03/17/wordpress-404-error/

Topic Closed

This topic has been closed to new replies.

About this Topic