# Different domains for each subdirectory

**URL:** <https://forum.getkirby.com/t/different-domains-for-each-subdirectory/21562>\
**Category:** Questions\
**Tags:** v3\
**Created:** [March 11, 2021, 12:38pm UTC](https://forum.getkirby.com/t/different-domains-for-each-subdirectory/21562 "2021-03-11T12:38:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shel](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Shel](https://forum.getkirby.com/u/Shel)\
**Post date:** [March 11, 2021, 12:38pm UTC](https://forum.getkirby.com/t/different-domains-for-each-subdirectory/21562/1 "2021-03-11T12:38:36Z")

</div>

A friendly hallo to the Kirby community as I write my first post here! After building several websites with Kirby, my first question is now on its way.

What we have, are various subdirectories of projects like:  
`domain.com/projects/project-one`  
`domain.com/projects/project-two`  
Every project is client-administrated from one place: `domain.com/panel/`  
The client can add as many projects as he wants (like new `project-three` etc) via the panel. So far, no problems here.

What we want, is a rewrite/redirect pointing/something from a unique domain like:  
`project-one.com` (to `domain.com/projects/project-one`)  
`project-two.com` (to `domain.com/projects/project-two`)  
For this, I can setup a simple 301 redirect at my hosting-provider from `project-one.com` to `domain.com/projects/project-one`. No problems here either. But we want the visitors have to always stay at `project-one.com`. Like `domain.com/projects/project-one` is the root of `project-one.com`. And `domain.com/projects/project-one/about` is `project-one.com/about`.

And the client can setup his own domains by adding new projects. With as little support from a developer like me as possible (like domain-admin, DNS-entries, Kirby-licenses 🥰 etc).

(How) is something like this can be done? With Kirby or better via our hosting-provider/.htaccess? Because of the link-URL’s of the sub-sites I guess, I have to handle this somehow with Kirby.
