Redirect function & include dir