I want to redirect users from pages with double slashes in the URL to the same URL but with a single slash. For example: from examplecom//some-page to examplecom/some-page
.htaccess file, the following code didn’t work for me:
All redirect-related features in the dashboard didn’t work for me either. Nothing changed at all.
Only using a _redirect file worked, but with a loop issue, and I have no idea why it happens. Here is how the _redirects content is looks like:
*some redirects here*
//:path /:path 308
All pages with // (examplecom//some-page) in the URL successfully redirected to their copy with a single slash (examplecom/some-page), but then it goes into a redirect loop for some reason, so examplecom/some-page redirects to itself continuously. Can someone help me with that?
You posted a screenshot where your ...app.com naked domain has a CNAME to another domain. Is the .htaccess file in that other domain?
If not, it won’t ever be triggered, and you’d need to seek help from whoever maintains that domain to verify that requests with double slashes are still arriving at the destination.
It’s hard to troubleshoot when there are several layers of directives trying to do the same thing. URL Normalization is the first layer, it should happen before any Redirect Rules, and therefore your domain should be normalizing from example.com// to example.com/.
As for the _redirect file, are you referring to a list used with Bulk Redirects?