.htaccess rewrite and http authentication

Discussion in 'Apache' started by wakeup, Feb 3, 2006.

  1. #1
    I installed wordpress with rewrite and I have this .htacces file in www root:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php
    </IfModule>
    
    Code (markup):
    Wordpress run ok and When I request files out of wordpress too. But when I want request files in a folder with .htaccess aunthentication it takes wordpress 404 error. Because it run rewriterule.
    Why don't detect the file exist with having a authentication .htacces in the folder?
    Any one knoew how solve it?

    Thanksss

    This is the .htacces file in folder for http authentication
    RewriteEngine Off
    AuthType Basic
    AuthName "letras"
    AuthUserFile "/home/hhdirect/.htpasswds/prueba/passwd"
    require valid-user
    
    Code (markup):

     
    wakeup, Feb 3, 2006 IP