Le impostazioni del file .htaccess sono argomento server, non php, ti sposto.