Write page on directory environments