Forum Moderators: phranque
I think I have a nice problem for you to take a look and hopefuly help me out.
I'm redirecting a domain no a new one except for some directories.
Redirection code:
RewriteEngine on
RewriteCond %{REQUEST_URI}!^/dir1 [NC]
RewriteCond %{REQUEST_URI}!^/dir2 [NC]
RewriteRule ^(.*)$ [newdomain.com...] [R=301,L]
All working ok. But when I try to add a password protection to say dir1 I get redirected (I checked it, it's a 301) to www.newdomain.com/401.shtml
My code for the password protection:
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /home/account/pass
Require user user
Any ideas about this?
Thks!