password protection (not blog related) (5 posts)

  1. phfreq
    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:

  3. phfreq
    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
    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
    Posted 10 years ago #

    I had the password protection issue and find a fix (actually, 2 fixes). It's documented here:

Topic Closed

This topic has been closed to new replies.

About this Topic