我有一个来自我们的搜索引擎优化顾问的请求添加一个重定向自
url.org//
到
url.org
. 我在这里试过一些文章,但运气不太好:
https://serverfault.com/questions/597302/removing-the-trailing-slash-from-a-url-with-nginx
我也在我的
sites-enabled/url.conf
文件:
location ~* \/\/$ {
return 301 $scheme://$server_name/;
}
请原谅我的无知。谢谢。