I have the following .htaccess file (usual one for MediaWiki):
RewriteEngine On RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ /w/index.php [L,QSA] RewriteRule ^/*$ /w/index.php [L,QSA]
And I want to restrict access to some paths (e.g. ^wiki/Private/(.*)$) with the password.
Is there any possibility to do that using .htaccess? There is no /wiki/ directory, so it isn't possible to put .htpasswd inside it.