Question

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 ?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top