<div dir="ltr"><div>Dear All,</div><div>Need some help to remove trailing Slash.</div><div>I have been trying to remove the trailing slash with this redirection rule. </div><div>rewrite ^/(.*)/$ /$1 permanent; <br></div><div><br></div><div>however it is creating a loop. </div><div><br></div><div>curl -I <a href="https://xxxx.com/live/">https://xxxx.com/live/</a></div><div><br></div><div><div>HTTP/1.1 301 Moved Permanently<br></div><div>Server: nginx/1.6.2</div><div>Date: Sat, 30 Apr 2016 07:39:07 GMT</div><div>Content-Type: text/html</div><div>Content-Length: 184</div><div>Location: <a href="https://xxxx.com/live">https://xxxx.com/live</a></div><div>Connection: keep-alive</div><div><br></div><div>curl -I <a href="https://xxxx.com/live">https://xxxx.com/live</a></div><div><br></div><div>HTTP/1.1 301 Moved Permanently<br></div><div>Server: nginx/1.6.2</div><div>Date: Sat, 30 Apr 2016 07:39:29 GMT</div><div>Content-Type: text/html; charset=UTF-8</div><div>Connection: keep-alive</div><div>Location: <a href="https://xxxx.com/live/">https://xxxx.com/live/</a></div></div><div><br></div><div>Can you please guide what i am doing wrong here. </div><div><br></div><div>Thanks,</div><div>Yousuf</div><div><br></div></div>