RewriteEngine OnRewriteCond %{HTTP_HOST} ^你的不带www的域名\\.net [NC]RewriteRule ^(.*)$ http://www.XXX\\.net$1 [L,R=301]//该片段来自于http://www.codesnippet.cn/detail/210620134218.html
来源: http://www.codesnippet.cn/detail/210620134218.html