I'm protecting an entire site but if users don't have access I want them to go to the sister site. What do I need in .htaccess to do this? I tried having a local file called go.php which used headers to do the redirect but I got server errors because the user didn't have access to the file (because it too is protected!) thanks Sarah
Hmmm it should work, although I've never actually done it. the .htaccess file would need to be in the root directory of domain A and the 401 redirect would point to a page on domain B. This is what you have tried right? The only other thing I can think of is that you're not allowed to override the ErrorDocument directive in .htaccess Maybe you want to browse the apache docs? Here's the page on the ErrorDocument directive for 1.3