mod_rewrite can't work with apache authentication

Discussion in 'Apache' started by kvashi, Dec 7, 2009.

  1. #1
    Hi,

    I have put .htaccess file in my one project directory and in that directory,below code exist:

    ______________________________________________________________

    AuthType Basic
    AuthName "Restricted Access"
    AuthUserFile /home/secure/apasswords
    Require user testuser


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

    ____________________________________________
    But unfortunately it gives me 500 internal server error.
    So anybody can help me out?

    Thanks,
    kvashi
     
    kvashi, Dec 7, 2009 IP