web.config and .htaccess bug fixes