我在nginx中有这个vhost,但我需要用#
(utm参数)重定向怎么做?
server {
server_name www.example1.com;
return 301 https://www.example2.com$request_uri; # here I need add utm parameters
}
答案 0 :(得分:3)
在字符串中添加引号,它应该可以正常工作。
return 301 "https://www.domain.com$request_uri#hash";