At first the Cookbook was published at URLs like /Downloading and running Lift.html.
Then it was published at URLs like /#DownloadAndRun.
Now it runs over at O'Reilly's Atlas server, with URLs like ch01.html#DownloadAndRun.
We want to keep the URLs working as best we can.
-
A set of nginx redirects for the first version of the site.
-
A single HTML page with JavaScript to pick out the client-site anchor references and redirect based on the anchor.
The nginx redirects are in nginx.conf, between # Re-writes from ...
and # End of cookbook rewrites
. That file is the default nginx config which serves up an index.html page.
The JavaScript is in index.html.
-
[http://cookbook.liftweb.net/Downloading and running Lift.html](http://cookbook.liftweb.net/Downloading and running Lift.html) should redirect to http://chimera.labs.oreilly.com/books/1234000000030/ch01.html#_problem ultimately.
-
http://cookbook.liftweb.net//#DownloadAndRun should redirect to the same page again.
And the following should all end up at the home page (http://chimera.labs.oreilly.com/books/1234000000030/index.html):