Report:
http://lists.gnu.org/archive/html/lilypond-devel/2016-03/msg00158.html
This is part of the work on issue [#3715].
I've started looking at Analytics, which gives two warnings:
$ git grep urchin.js
scripts/build/website_post.py:<script src="http://www.google-analytics.com/urchin.js";
More information on:
https://developers.google.com/analytics/devguides/collection/analyticsjs/
Currently it's possible to visit either lilypond.org and www.lilypond.org.
We should make a choice and set up a 301 redirect in Apache htaccess.
I'm for lilypond.org (without www). This was recently discussed when talking about the tagline:
http://lists.gnu.org/archive/html/lilypond-devel/2016-02/msg00148.html
I'm used to nginx, which has a simpler syntax. I need that somebody review and check the change to the htaccess file.
There are many ways to redirect from www to non-www in Apache. Maybe the best one is what it's described at the end of this section, which is actually an example of the opposite redirection, so it should be adapted.
I would rewrite it like this. What do you think?
This should be tested manually on the server before pushing.
issue 4813: replace urchin.js with analytics.js and fix redundant hostnames
The change to the htaccess file should be tested manually on the server
before pushing this patch to staging.
http://codereview.appspot.com/294020043
So do you want me to edit .htaccess manually? How should it be tested?
Yes please, just add the two lines on the file on the server and let's see if accessing www.lilypond.org (and any other www.lilypond.org/whatever link) is redirected to lilypond.org or lilypond.org/whatever
Right. I think I now have this working. The current .htaccess syntax can be seen at:
http://lilypond.org/hta.txt
If anyone is having problems accessing any of the lilypond website, please let me know.
Fix the RewriteRule (thanks to Phil)
http://codereview.appspot.com/294020043
Passes Make , make check and a full make doc.
Patch on countdown for April 6th.
Patch counted down - please push
pushed to staging:
9580a231b3d3f912f46066009114a2929ecbb16a