Custom domain with different paths for each repository
Hey there,
I have a question regarding the hosting capabilities on Cloudflare Pages.
Suppose I have two separate repositories,
X
and Y
, and my intention is to host both under the same domain, such as your.domain.com
. The structure I'm aiming for is to have repository X
accessible at your.domain.com/previews/X
and repository Y
at your.domain.com/previews/Y
.
Does Cloudflare Pages support this type of configuration?
Thanks in advance.4 Replies
This isn't possible currently. You'd have to use a work to proxy the request to the pages project
Thanks for your reply. Are there any docs or guides on how I can achieve that?
Unfortunately, I'm not aware of any guides. Realistically it shouldn't be more than making a sub request to a different host based off the URL path
I see, thank you.