2

I have this vhost in nginx but i need to redirect with # (utm parameters) how to do it?

server {
    server_name www.example1.com;
    return      301 https://www.example2.com$request_uri; # here I need add utm parameters
}
4

1 回答 1

5

在字符串中添加引号,它应该可以工作。

return 301 "https://www.domain.com$request_uri#hash";
于 2014-09-01T13:29:26.613 回答