linux设置301重定向的方法:
设置.htaccess文件,在.htaccess文件里写上以下代码便可。
RewriteEngine on
RewriteCond %{http_host} ^123.com [NC]
RewriteRule ^(.*)$ http://www.123.com/$1 [L,R=301]
本文来源:https://www.yuntue.com/post/78359.html | 云服务器网,转载请注明出处!
linux怎样设置301重定向linux设置301重定向的方法:设置.htaccess文件,在.htaccess文件里写上以下代码便可。RewriteEngine onRewriteCond %{http_host} ^123.com [NC]RewriteR