Open N3evin opened 3 years ago
Could add rewrite ^/(.*)/$ /$1 permanent;
to your server block if this is still an issue?
Could add
rewrite ^/(.*)/$ /$1 permanent;
to your server block if this is still an issue?
Just tried that, seems to not work. Kinda cause the site to crash too.
Below are the 2 different methods I tried with the rewrite.
Here are the full details of that solution
and here is a method for working with and without a trailing slash
with and without a trailing slash
Had tried the 1st method, above comments :) But will look into the 2nd method. Thank you
I will be posting my Nginx configuration to see if anyone can help solve this issue. Seems like it will add a trailing slash when and cause a redirect loop.