Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use netlify.toml instead of _redirects #2

Open
thunderrabbit opened this issue Oct 18, 2018 · 0 comments
Open

Use netlify.toml instead of _redirects #2

thunderrabbit opened this issue Oct 18, 2018 · 0 comments

Comments

@thunderrabbit
Copy link
Collaborator

e465162#commitcomment-30949261

thunderrabbit referenced this issue Oct 18, 2018
link to channel via _redirects and CNAME thanks to Chris:

Hi Rob,

CNAMEs can only point to hostnames, not paths.  So you won't be able
to make "channel.marbletrack3.com" point to anything more specific
than "youtube.com" that way.  Redirects probably is the way to go -
those can point wherever.  Something like this should work.

set domain alias for channel.marbletrack3.com on a site you already
have here (that's like adding another custom domain, in the same place
in the Domain config) set up DNS of channel.marbletrack3.com CNAME
pointing to wonderful-bhabha-dfd1ef.netlify.com (yup, same place as www)

add this redirect to _redirects:
https://channel.marbletrack3.com/* https://youtube.com/channel/mygreatchannel 301!

On Wed, Oct 17, 2018 at 05:04 PM, "Rob Nugen" wrote:

> be me
> move site to Netlify
> oh no subdomains broke
> try _redirect
> no good
> create CNAME
> https://app.netlify.com/account/dns/marbletrack3.com

channel.marbletrack3.com --> youtube.com/channel/mygreatchannel

> wait an hour
> refresh still not working
> use greentext for support
> refresh still not working

<whatdo.gif>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant