On 2016-05-12, Erling Westenvik <erling.westen...@gmail.com> wrote:
> Not that I'm aware of. Anyway: Such logic should be part of your
> application, not the web server since it would just add unnecessary and
> ambiguos complexity to the latter.
>
>> Or should I do it in another way? 
>
> You could try something like this:
>
><?php
>    if (basename($_SERVER["PHP_SELF"]) == "index.php") {
>        header("Location: ".$_SERVER["REQUEST_URI"]."index.html");
>    }
> ?>

This is quite a common requirement, using PHP for this seems quite overkill...

Reply via email to