fix the no index.html url support