Map a domain to a subpath of another domain

Greetings,

I may need a nudge in the right direction. I know exactly what I want to do, but I’m not quite sure how to proceed.

What I Want to Do

I have an existing website at my-domain1.com that’s working perfectly. I want to “map” my-domain2.com to a particular subpath of my-domain1.com. So for example, when someone visits my-domain2.com, they will be served the contents residing at my-domain1.com/my/sub/path.

Questions

  1. Can I set this up / try it on Netlify’s free teir?
  2. Do I need to use Netlify for my DNS, or can I use my existing external DNS provider as described here?

I have no control over the server hosting my existing site, as it was created using an integrated web development platform.

Any info or insights on how to get started would be appreciated. (I’ve done some reading and searching, but I think my lack of familiarity with the concepts and terminology is a limiting factor.)

Thanks much.

Yes, this is possible on all plans. Steps:

  1. Setup a Netlify site, add my-domain2.com to it as per: Custom domains | Netlify Docs
  2. In this new site, add the following netlify.toml:
[[redirects]]
  force = true
  from = "/*"
  startus = 200
  to = "https://my-domain2.com/my/sub/path"

Netlify DNS is not required for this.

Ok, I’m confused. I’m currently trying to implement your suggestion, but I don’t understand why I must set up a site when I already have one.

I was thinking I just needed to do something with domains and domain aliases. I don’t need a website. I just need to point one domain I own to the subdirectory of another domain I own. What’s the point of choosing a template, etc?

EDIT

Ok, never mind. I just dragged a folder with a bare-bones index.html file to the deploy section to get started.