Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

How are we going to make the switch from .com to .org? #9

Open
jfly opened this issue May 23, 2017 · 5 comments
Open

How are we going to make the switch from .com to .org? #9

jfly opened this issue May 23, 2017 · 5 comments

Comments

@jfly
Copy link
Contributor

jfly commented May 23, 2017

@jbcm627 says:

I was implicitly assuming .org content would all go live at once when ready, and .com pages would redirect. A simple solution would be to just remove those pages from .com, and redirect all 404 cubingusa traffic to .org. Then on the .org side (Jekyll), use something like this:
https://github.com/jekyll/jekyll-redirect-from

"those pages" refers to:

We currently have a redirect from cubingusa.org to cubingusa.com. @jbcm627, in your proposal above, you don't suggest how we'd handle that. Would we remove the redirect entirely? (that seems reasonable to me, but maybe there's some subtlety I'm not seeing)

@jbmertens
Copy link
Contributor

We currently have a redirect from cubingusa.org to cubingusa.com. @jbcm627, in your proposal above, you don't suggest how we'd handle that. Would we remove the redirect entirely? (that seems reasonable to me, but maybe there's some subtlety I'm not seeing)

Agreed, the redirect should be removed. (Sorry, again I was implicitly assuming this.)

Related, the above proposal can also handle competition websites (#5). In order to keep the directory structure in /org clean, I'd like to propose:

  • Put all static-ified competition website content from Add competition pages #5 in a subdirectory, let's call it 'legacy'.
  • Have .com redirect all 404 traffic from .com/[URI] to .org/legacy/[URI]
  • Have Jekyll explicitly redirect the pages mentioned above from .org/legacy/[URI] to their replacements.
  • Remove content from .com once a .org replacement is in place.

@jfly
Copy link
Contributor Author

jfly commented May 23, 2017

Have .com redirect all 404 traffic from .com/[PATH] to .org/legacy/[PATH]

I like the cleanliness of this idea, but I think it might prove problematic if you ask yourself "in the fullness of time, what do we plan to do with the cubingusa.com domain?" Currently, the dot com domain is served up by an EC2 instance, so we can definitely implement this .com/[PATH] to .org/legacy/[PATH] redirect you propose. However, in the fullness of time, I think we'd like to get rid of this EC2 instance, and then our options become a bit more limited. Two ideas:

  1. We use namecheap for hosting both our domains, so we could set up a redirect on their site to go from .com/[PATH] to .org/[PATH]. It's not clear to me from reading their redirect documentation if it's possible to inject a /legacy into that url when doing the redirect. This would require some experimentation.
  2. Set up github pages for the dot com domain, and have it serve up a html file with a redirect like the jekyll-redirect-from library does. This would require us to either list all urls up front, or do something clever with javascript.
  3. Something clever I'm not thinking of? Maybe using AWS gateway and lambda?

@jbmertens
Copy link
Contributor

jbmertens commented May 23, 2017

Looking at looks like namecheap page suggests to me it is possible. I see a bit about redirecting to subdirs, etc, around the text here:

Redirect a domain/subdomain to a specific page on a website and pass values via query strings (for domains pointed to our BasicDNS)

Hopefully that will be sufficient long-term.

@jbmertens
Copy link
Contributor

jbmertens commented May 23, 2017

As an update after chatting with @jfly and @coder13, it looks like the namecheap URL redirect idea will work. As a test, I tried directing cubingusa.org/* to cubingusa.com/test/*, with the namecheap configuration seen below:

capture

This successfully redirected me from
www.cubingusa.org/hello.foo
to
www.cubingusa.com/test/hello.foo.
(Note that the redirect is now reverted to not add in the /test.) Hopefully we can set this up in reverse when it comes time to switch permanently. We may also want to use a wildcard redirect, so the former subdomains koii.cubingusa.com/*, caltech.cubingusa.com, etc, are all correctly redirected.

@jfly
Copy link
Contributor Author

jfly commented May 23, 2017

Great news! So we can definitely proceed with putting everything old under a "legacy" directory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants