My website has a search protocol, but it is only for site admins. I want to be able to share certain searches with users without them having to log in (since queries are hashed, they won't be able to search anything from the URL).
I am using basic auth and need to find a way to exclude all query strings from password protection. The file is index.php, which I want password protected, but I want index.php?q=* (wildcard), open to all. Is there a way to do this with only .htaccess?
Since it is a query string, it is not a directory. I've looked around for something, but they have all been to password-protect query strings, etc.