Answer the question
In order to leave comments, you need to log in
How to make http authorization for a specific url (.htaccess)?
Whether it is possible to make by means of .htaccess http authorization for a certain url.
Not a folder or file to close, but a url. Those. we want to make such authorization for one page of the site.
Answer the question
In order to leave comments, you need to log in
SetEnvIf Request_URI ^/page$ blocked
Deny from env=blocked
Satisfy any
AuthType Basic
AuthName "Пожалуйста, авторизуйтесь"
AuthUserFile полный/путь/на_сервере/.htpasswd
Require valid-user
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question