Question

Is it possible using .htaccess or other apache powers to set a custom server value in the php array $_SERVER.

for example

if($_SERVER['is_special']) {
    echo "Yeah for us!";
} else {
    echo "No you fool!";
}

I realize I ask a lot of questions that the answer is no so feel free to say so.

Was it helpful?

Solution

Try the SetEnv directive:

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