I have a website build in cs cart.
The url of administrator panel is like this https://mysite.com/vendorsds.php
.
I want to set a HTPasswd for user whenever he/she visit this link https://mysite.com/vendorsds.php?dispatch=companies.update
.
I have tried the following -
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /var/chroot/home/content/28/11136228/html/htpasswds/.htpasswd
AuthGroupFile /dev/null
<Files vendorsds.php?dispatch=companies.update>
require valid-user
</Files>
When I remove dispatch=companies.update
from above its working for all of the pages going through the vendorsds.php.
Is it possible to set HTPasswd for any specific GET parameter (like dispatch=companies.update
) in same page?