Using HTACCESS for Secret Access

I don’t think that’s possible using .htaccess alone.

Even if it were, what would be the usefulness of keeping a secret which would be displayed in plain text in the URL bar?