redirecting to index file instead of serving it directly