設置nginx變量nginx
set $domail_url "$host$request_uri";判斷並重定向if ($domail_url = '123.com/about/'){ rewrite ^/(.*)$ http://123.net/$1 permanent;}dom