Update to htaccess and apache handling