I’m trying to map content to a specific domain alias.
I’d like anyone accessing a specific part of my site to have the URL specified in their browser.
For example, I had though that _redirects would work like this: /meetings http://www.naenglishspain.org/ 301! /tenerife http://www.naenglishspain.org/tenerife 301! /* /index.html 200
Thanks Nathan.
I’ve also tried rewriting with 200 but the domain shows an error.
I think it had to do same-origin policy and that I will have to set up a proxy for what I want.
If you wish to have a path on the primary domain (e.g. naenglishmadrid.org/tenerife) redirect to the alias domain (e.g. naenglishspain.org/tenerife then you need to specify this in the redirect e.g.
/meetings currently displays a blank page. What status code are you currently using, 200 or 301? As above, if this should act on a specific domain then specify it in the redirect.
Does the deploy log show all redirects were processed? If you download the deploy, does the _redirects file look as you expect or is it different?
You can’t have content from a sub-path (like /madrid) served at the domain root when the domain is assigned to the project. In order to serve a sub-path at the root of another domain that domain needs attaching to a separate site. Then you proxy to as explained in the Proxy to another Netlify site documentation.