Вопрос

I'm trying to protect a single url using htaccess password. (it's my admin page)

After some research, I found (on stackoverflow) the solution : use SetEnvIf to detect the URL and then ask password only when we have the URL.

I tested it but that didn't work : the password was asked everytime. After investigation with my host, it seems they are runnig LITESPEED (and not Apache) and the module SetEnvIf is not activated. As a result, I am stuck... Can I do it differently ?

Это было полезно?

Решение

You can always try doing it manually with PHP. AFAIK no server configuration is necessary.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top