This refers to the question in:
index directory in .htaccess
The answer says the following should work:
SetEnvIf Remote_Addr ^127\.0\.0\.0$ owner
<IfDefine owner>
DirectoryIndex index.html
</IfDefine>
<IfDefine !owner>
DirectoryIndex index.php
</IfDefine>
I'm not sure if this works, setting Env var deffinately does, but no matter which IP I visit from DirectoryIndex, always index.php
Is something wrong with the conditional, or should I use something else?
Thanks in advance
source
share