added relative paths moved index and added redirect