move config from apache to htaccess, and optional php eval in templates