Forum Moderators: phranque

Message Too Old, No Replies

.htaccess rewrite and http authentication

         

wakeup

9:57 am on Feb 3, 2006 (gmt 0)

10+ Year Member



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>

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

<snip>

[edited by: jdMorgan at 6:55 pm (utc) on Feb. 3, 2006]
[edit reason] No URLs or sigs, please. See TOS. [/edit]

jdMorgan

10:04 pm on Feb 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try adding

RewriteEngine on
RewriteOptions inherit

in your password-protected directory .htaccess file.

Jim

wakeup

7:38 pm on Feb 7, 2006 (gmt 0)

10+ Year Member



thanks, but I have just tried it but I have the same problem :(