Building a website with different redirections and routes

Hi,

I’m trying to build a website with redirections. When you connect to exemple.com, you land on a page that is going to be editable in the panel and act kind of like a hub or a splash-page, but to access the main site, you have to follow a link on exemple.com, that would bring you to some more content under /website.

For now I had my website under a /website folder on my hosting solution, and an index.html at the root. But I was curious to replace this landing page with something more editable.

I was curious what would be the best way to achieve that properly?

Thanks.

See Serve page on own domain | Kirby CMS, something like this, but the other way round

1 Like

I’m not sure what the difficulty is.

You can have a home page that links to a different page. If you want most pages in your website to be under /website/*, then you could have a content folder organized like this:

content/
    home/
        home.txt
    website/
        some-page/
            page.txt
        some-other-page/
            page.txt
        yet-another-page/
            page.txt

By default, Kirby will serve the content/home page for requests to the root of the site (https://exemple.com/). And it will serve content/website/some-page for requests for the /website/some-page path.

Basically, you can organize your content folder with the URL path architecture that you want to have.

Is the issue that you have other “websites” on the some domain name, served on different paths (e.g. at https://exemple.com/something-else/*), that should not be handled by Kirby?