Support Forums

Deploy site to subdomain URL

I have a site:
site.myurl.com (Domain not managed by Netlify, but I use Netlify as my CI/CD.)

I have another site:

I want somesite.netlify.app to be redirected to site.myurl.com/new-site-url

I’m not able to find any docs on it. I see a lot of docs going the other way. Is this possible with Netlify?

Hi @tjperry07,

You simply need the following redirect rule:

https://somesite.netlify.app/* https://site.myurl.com/:splat 301!

Yup, I was able to figure it out.
Created a netlify.toml on site.myurl.com and

  from = "/new-site-url/*"
  to = "https://somesite.netlify.app/:splat"
  status = 200
  force = true

Updated the assets on https://somesite.netlify.app so they were at new-site-url instead of the base path and it’s working.


Thanks for coming back and letting us know! This will definitely be beneficial for future Forums members who encounter something similar :netliconfetti: