htaccess + misc perf improvements