I would like to have 1 site like catdog.netlify.app with domain alias cat-dog.netlify.app. But currently have them as 2 sites because I haven’t figured out how to do that. It feels wrong to configure them as 2 sites in principle but it also causes issues like cat-dog.netlify.app being indexed on google instead of catdog.netlify.app. Any suggestions?
No, that’s not possible without setting up 2 sites. On one of the sites however, you could setup a rewrite: Redirects and rewrites | Netlify Docs
I didn’t see an example in the docs to redirect everything. Is this how contents of _redirects should look if you want every page at cat-dog.netlify.app to redirect to catdog.netlify.app?
In the meantime I tried /* https://catdog.netlify.app/* and it didn’t work.
Then I tried /* https://catdog.netlify.app/ and it forwarded every page to https://catdog.netlify.app/
Can you please suggest how I can redirect all pages to their equivalent?
@Sage You want the
The documentation is here:
Perfect thank you. I couldn’t find that.
glad you found your solution!