¿Cómo cambiar el nombre de dominio y realizar la redirección 301 en el host virtual del sistema win2003?
Cree un nuevo archivo web.config en el directorio raíz del sitio web y agregue el siguiente código al archivo.
lt;configurationgt;
lt;system .webServergt;
lt;rewritegt;
lt;rulesgt;
lt; nombre de regla="WWW Redirect" stopProcessing="true"gt;
lt; coincidencia url=".*" /gt;
lt; /p>
lt; agregar input="{HTTP_HOST}" patrón="^lossun.com$" /gt;
lt;/conditionsgt;
lt; type="Redirect" url="/{R:0}"
redirectType="Permanente" /gt
lt /rulegt; ;/rulesgt;
lt;/rewritegt;
lt;/systemgt;
lt;/configurationgt;