some minor fixes if url was index.html