costoffreedom / costoffreedom.cc

Cost of Freedom Book website
http://costoffreedom.cc
Creative Commons Zero v1.0 Universal
7 stars 4 forks source link

Handle book links to main site after book moves to subdomain #41

Closed mlinksva closed 8 years ago

mlinksva commented 8 years ago

Two obvious approaches:

As mentioned in #34

hellekin commented 8 years ago

Don't use Javascript: let the server do it and keep track of URLs.

https://help.github.com/articles/redirects-on-github-pages/

It's not a nice nginx rewrite one-liner, but we can degrade gracefully without having to resort to javascript in this case.

hk

We are free to share code and we code to share freedom (X)yne Foundation, Free Culture Foundry * https://www.dyne.org/donate/

mlinksva commented 8 years ago

That uses javascript and only works within one jekyll site.

clemsos commented 8 years ago

Structure is similar on both meaning that for instance http://costoffreedom.cc/book/opening:freedom/ is now http://book.costoffreedom.cc/book/opening:freedom/

mlinksva commented 8 years ago

This should be done in 990484524cd5071f34d49f5fad67f9ed16361898 and fa9dd7456d2c294baf8be33861be7892509f56ee with a note added in 07b6ab73dda8a5716fce562c0d844849ada29722

I didn't notice til now 35d5e0b and #50 ... I like the 404 handler as a backup. I'd rather not completely remove the initial book URLs, especially the PDF.

mlinksva commented 8 years ago

That said I don't care that much. @clemsos feel free to just switch gh-pages to the 'clean' branch if that's what you think is best.

clemsos commented 8 years ago

I added the 404 as well, so we have both :) I think we can close this now.