rebuild should copy over parameters and .htaccess as well