fixes for when there is no .htaccess file