全站301重定向的方法:
Linux系统下,修改文件httpd.conf或者.htaccess文件保存即可,例如:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^xxxx.com [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [L,R=301]
全站301重定向的方法:
Linux系统下,修改文件httpd.conf或者.htaccess文件保存即可,例如:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^xxxx.com [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [L,R=301]