I've been searching for a while now and there must be a simple answer for this. I want to apply a password authorization in my htaccess file, but only for the top url of my site. So for example, I'd like for a password prompt to appear if you access the url "mydomain.com", but not to appear for the url "mydomain.com/articles" (and I'm talking specifically about a url, not a server directory location). Is this possible? I know how to password protect the entire site, with the code below:
AuthType Basic
AuthName "restricted area"
AuthUserFile "/home/passwords/.htpasswd-file"
Require valid-user
...which works for me. I'm just not sure how to adjust this so that the password prompt only appears on the very top url of the site.
Edit: To clarify, I'm not talking about subdirectory access, but URL access. The url "mydomain.com/articles" I think is a rewritten URL from Magento, there isn't an "articles" directory on my site.
Edit 2: Also to clarify a bit more, I can't do a FilesMatch on the index.php file of the site, because it seems Magento the index.php is used for serving all of the urls on the site (so if I password protect index.php, the whole site is inaccessible).