如将a.com,www.a.com的url重定向至b.com

server
{
listen 80;
server_name www.a.com a.com; #server_name end
index index.html index.htm index.php; #index end

set subdomain ''; root /home/wwwroot/a.com/websubdomain′′;root/home/wwwroot/a.com/websubdomain;
include rewrite/amh.conf; #rewrite end
if (ParseError: KaTeX parse error: Expected '}', got 'EOF' at end of input: … rewrite ^/(.*) http://www.b.com/$1 permanent;
}
...
}