redirect to index if only in production