我想把 xxx.abc.com 自动跳转到xxx.blog.abc.com,请问该如何写匹配规则?
rewriteEngine on
RewriteCond **********
RewriteRule ****************** [L]非常感谢!
rewriteEngine on
RewriteCond **********
RewriteRule ****************** [L]非常感谢!
RewriteCond %{HTTP_HOST} ^(xxx\.abc\.com)(:80)? [NC]
RewriteRule ^(.*) http://xxx.blog.abc.com/$1 [R=301,L]没测试,楼主可以试试看
Nginx中使用proxy_pass