server { listen main:80; server_name xn--l1adgmc.xn--e1aapc7d.xn--p1ai; location ^~ / { rewrite /(.*) https://forum.shelek.ru/$1 permanent; }}
RewriteEngine onRewriteRule ^/(.*)$ http://куда_редиректить/$1 [R=permanent]
RewriteCond %{HTTP_HOST} ^xn--80arbjktj [NC]RewriteRule ^(.*)$ http://mysite.su/$1 [R=301,L]