• I’m running WP2 in the root dir. I have a child directory: “/resources/identity/” that I have files in for easy download (an apache index of the files). I don’t want just anyone being able to download the files. So I thought, hey, I’ve used .htaccess before. It should work fine.

    I’ve played with and googled for 2 hours and want to hurt myself. For whatever reason, as soon as I use this basic directive, it chokes:

    AuthType Basic
    AuthName “Refuge Identity Restricted Area”
    AuthUserFile /XXX/XXX
    #Require valid-user

    Ironically…once I uncomment the Require line it freaks out and redirects me to a “Page Not Found” in the WordPress site. Until then…I see all my files just fine. Obviously even though the other lines are uncommented, I’m not presented a login box or restricted access which I want.

    Is there any easy fix to this or way to tell if this is a server config issue or just WP butting in?

    In case my .htaccess in my root directory alongside index.php matters (permalinks work great)

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

  • The topic ‘.htaccess and using AuthConfig on a child directory’ is closed to new replies.