Moved .htaccess generation into admin_init only.