Redirect my homepage to a specific index.md

On my local machine, it works perfectly:

When i connect to “base url” as 127.0.0.1:1111 i set my zola blog to automatically redirect to 127.0.0.1111/about pages.

My architecture is as follow:

content/
├── about/
│ └── index.md
├── articles/
│ ├── article1
│ ├── article2
│ ├── article3
│ ├── _index.es.md
│ ├── _index.fr.md
│ └── _index.md

├── _index.md
└── resume/
├── index.es.md
├── index.fr.md
└── index.md

My _index.md* in root content:

+++
redirect_to="about/"
+++

On my machine, it works fine. When i type “127.0.0.1111” on my browser it redirects me to “127.0.0.1111/about”

BUT when I run the website online with a domain name let’s say mysite .com it don’t redirect me. Instead to redirect me to “mysite .com/about” when I type “mysite .com”, the blog stay on “mysite .com”. .

Have you an idea how to fix the redirect_to ?

What’s the output of the root index.html? It shouldn’t change depending on the base url…

Hi keats,

I finally resolved my problem by directly writting the html i wanted as a cover page into index.html

1 Like