These steps are for shared hosting. They use the panel, not a root shell on a server.
Web Hosting
To a browser and to a search engine, /about and /about/ are two addresses. If both return 200 you have two copies of every page. The fix is to choose one form and redirect the other - and the way that goes wrong is a loop.
Choose one
# nginx: no trailing slash
rewrite ^/(.*)/$ /$1 permanent;
# nginx: with a trailing slash
rewrite ^([^.]*[^/])$ $1/ permanent;
The second pattern deliberately excludes anything containing a dot, so files - /logo.png, /robots.txt - are not sent to /logo.png/.
The loop
curl -sSIL https://example.com/about | grep -E '^HTTP|^location' | head -10
More than one redirect in that output, or the same two addresses alternating, is the loop. See redirect loops.
Directories are the exception
A real directory needs the trailing slash: without it, relative links inside the page resolve one level too high, so the CSS and images break while the HTML loads. Web servers redirect to add it for a reason.
Say which one is canonical
<link rel="canonical" href="https://example.com/about">
