Different domains pointed to same app on Heroku

Viewed 16

Is it possible having a MERN APP hosted on Heroku, to use React to direct to different parts of the app based on an external URL? There will be multiple URLs pointed at the site. We want different URLs to show different websites.

Currently, we've gotten help programming a solution, however it shows the FULL PATH --- example DOMAIN1.COM and DOMAIN2.com point to the app. We want DOMAIN2.com to point to url.com/folder2/ and DOMAIN 3.com to point to url.com/foler/folder 3 without showing that full path in the URL address bar of the browser, so they can't get to the other website/part of the app. It's basically like how you can point a domain name on a webserver to just serve files from a specific folder. Is this possible?

0 Answers
Related