fixed indices and added directory redirect