<?php // redirect browser to "public" path when virtual host isn't set to "public" directory header('Location: public');
info at phpclasses dot org