fix encoded url
add index redirect