server {
listen 80;
server_name news.site.ru;
...
}
server {
listen 80;
server_name site.ru news.site.ru;
...
location /news {
rewrite ^/news/(.*)$ http://news.site.ru/$1 permanent;
}
}
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} ^/news/.*$
RewriteRule ^/news/(.*)$ http://news.site.ru/$1 [R=301,L]
</IfModule>