This pull request is the same as the first, except that it adds some custom stuff...

SEO (remove www, redirect https) + security hardening (deny malformed php requests)