apache��iis����301�̳̣���������������

��ǰ�ṩ�̳���ͨ����д����ʵ��301,Ŀǰ��˾��������Ѿ�����"301ת��"���ܿɿ�����ã�

���������https���ʣ�����Դ˽̳̣�����https����վ��ο���https://www.west.cn/faq/list.asp?unid=1419 

  1. ����ҵ�����-������������-301ת��

    ͼƬ.png

  2. �������ͼ��ʾ

    2.1 windows2008/2012/2016ϵͳ��

    ͼƬ.png

    ��һ�����������������Ҫ��ת���������ڶ�������������ת����������


     2.2 linuxϵͳ��

   1.jpg

   ï¿½ï¿½ï¿½Ñ¡ï¿½ï¿½ï¿½ï¿½Ñ¡ï¿½ï¿½ï¿½ï¿½Òªï¿½ï¿½ï¿½ï¿½ï¿½ï¿½×ªï¿½ï¿½ï¿½ï¿½ï¿½ï¿½,���������,���϶���ѡ��ctrl�����

   ï¿½Ò²ï¿½Ñ¡ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Òªï¿½ï¿½×ªï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½,�������ʾ���ɵ�301����,��Ҫͨ����վ��������-�����-wwwroot�´���һ���ļ�,����.htaccess(������,ֻ��Ҫ���ƴ������ӽ�ȥ),�������ɵĴ���ճ����.htaccess�б��漴��


�ֹ�����301�ķ�������:

apache����

���������-�ļ�����,����wwwroot,�½�һ���ļ�,����Ϊ.htaccess�ļ�,д�����¹���,���漴��

<IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_HOST} ^xxxx1.com$ [NC,OR] 
      RewriteCond %{HTTP_HOST} ^xxxx2.com$ [NC] 
      RewriteRule ^(.*)$ http://www.xxxx1.com/$1 [R=301,L]
</IfModule>

ʵ�ֵ�Ч����xxxx.com����ʱ��ת��www.xxxx.com  RewriteCondΪ������������ʱ�ิ��һ�м���


iis����

���������-�ļ�����,����wwwroot,�½�һ���ļ�,����web.config,����һЩ����,���漴��

<?xml version="1.0" encoding="UTF-8"?>    
 <configuration>
    <system.webServer>
      <rewrite>
        <rules>
         <rule name="301Redirect" stopProcessing="true">
          <match url="(.*)" />
           <conditions logicalGrouping="MatchAny">
             <add input="{HTTP_HOST}" pattern="^xxxx1.com$" />
             <add input="{HTTP_HOST}" pattern="^xxxx2.com$" />
            </conditions>
           <action type="Redirect" url="http://www.xxxx1.com/{R:0}" redirectType="Permanent" />
          </rule>
         </rules>
        </rewrite>
     </system.webServer>
</configuration>

ʵ�ֵ�Ч����xxxx1.com��xxxx2.com����ʱ��ת��www.xxxx1.com



�༭����������
���ڣ�2014-12-24

�� �ղ� �� ï¿½ï¿½ ��ӡ ��   
���ɶ��ĵ���������Ӵ~

��ѡ�����������ύ�����ǣ��յ�������֤��ʱ�������£�

�ύ������Ҫ�ȵ�½��Ա�ʺ�

��һƪ������ƽ̨�����һ����޸�?
��һƪ������ƽ̨��̨�������Ϊ������ҵ����������ͨ��ѯ
���ĵ����ݶ���û�а��������ܽ�����⣿ �������� ��ѯ���߿ͷ� �� �ύ���� �� ������������ �����ǽ��߳�Ϊ������
  >> �������
 
��������
Top

24Сʱ�ͷ�����

400-028-5800

028-62778877

���ã��������ϰ�ʱ�����н����������⣬�벦�ܻ���7�ż��� �����������ύ���������ϰ�ʱ����ϵ��лл֧�֣�

OSZAR »