If you create a directory inside a WP install, you can access it normally. Say, domain.com/wiki . But if you put a normal .htaccess file in that wiki directory to limit access, you don't get the http authentication dialog. Instead, WordPress tries to handle the URL and you get a WP 404 instead.
I don't understand what causes this. Any suggestions? Thanks.