如果url只包含“/”,我需要帮助重定向?&
例子:
https://example.com/?&
重定向到:
https://example.com/
已尝试使用此代码,但无法工作。
location /?& { return 301 http://$server_name; }