web apps on different URL path using pages

I want to host two different apps on different url paths on same domain , i am using cloudflare. basically i have two next js web apps, one is a simple landing page and second one is a SAAS web app. I want the users to be able to access both sites on same domain but different sub folder. For example my domain name is example.com i want the landing page app to serve on example.com and my SAAS app on example.com/character
14 Replies
Asterisk
Asterisk14mo ago
Redirects · Cloudflare Pages docs
To use redirects on Cloudflare Pages, declare your redirects in a plain text file called _redirects without a file extension, in the output folder of …
pablothegame
pablothegameOP14mo ago
i dont want to redirect users, as i have multiple pages on my app. I want to host two apps on same domain but different folder/url path @Asterisk
Asterisk
Asterisk14mo ago
and you can't just put your app in a folder to be uploaded with your landing page
pablothegame
pablothegameOP14mo ago
yes i cannot because i would want to deploy different apps on different url paths
Asterisk
Asterisk14mo ago
maybe something like Proxyzilla could help
pablothegame
pablothegameOP14mo ago
how to do that on cloudflare pages? because i have my landing page app and my other website on cloudflare pages
Asterisk
Asterisk14mo ago
Proxyzilla itself is a cloudflare app
pablothegame
pablothegameOP14mo ago
can you share any blog or resource on how to achieve what you suggested?
Asterisk
Asterisk14mo ago
if your domain's on cloudflare with the cf proxy it'll work, it hooks up to a Workers endpoint
Asterisk
Asterisk14mo ago
Asterisk
Asterisk14mo ago
the app works but the site doesn't seem to exist ah I see it changed it's name
Asterisk
Asterisk14mo ago
Proxyflare | Proxyflare
Proxyflare is a reverse proxy for your Cloudflare domain
Asterisk
Asterisk14mo ago
it's a cf pages plugin

Did you find this page helpful?