I need to use .htaccess to password protect a single page on a site where all pages are index.php and the content that is served is determined solely by the query string. Here's my current attempt - it does nothing:
<FilesMatch "^(index.php?p=flagged&flag=featflag)$">
AuthType Basic
AuthName "Protected Access"
AuthUserFile /usr/local/apache2/passwords/users
Require valid-user
</FilesMatch>
It appears that FilesMatch is simply not recognising my string. I've also tried numerous variations on the string including:
<FilesMatch "^(index.php\?p=flagged&flag=featflag)$">
<FilesMatch "^(index.php\?p=flagged\&flag=featflag)$">
<FilesMatch "(index.php?p=flagged&flag=featflag)">
etc, etc.
Am I trying to do something that's not possible?