Initially I decided to keep the English language as main content of the website but started writing everything in Spanish.
My Spanish content is under /es/
.
The root (without /en/
) stays reserved for English in the future.
However, since I don’t have any English content, I ended up with empty root page. For that reason, in the meanwile I would like to redirect all /
to /es/
.
Can I do so from Hugo config only or this will require me messing with server requests? And if that involves changes on the server, what redirection rule will look like (I use Cloudflare).
I would prefer to redirect /
to /es/
instead of redirecting /es/
to /
as pages are already indexed by search engines.