Internal redirection is a process when one URL is redirected to another one internally. Moreover, browsers and users don’t see these changes.
What does “Trailing slash mismatch in a URL” mean?
This issue means that the one URL on your site is redirected to another internal URL. The presence/absence of a trailing slash is the only difference between them.
You can also discover all details about redirecting URLs:
What triggers this issue?
You should know that this issue is related to your server setup, where two opposite situations can arise:
- The server expects to see a URL with a trailing slash. And when it faces a URL without one, the server redirects to a URL with a forward slash at the end
- Or the server expects to encounter a URL without a trailing slash, so is redirecting a URL that doesn’t have one
You can also watch the video by John Mueller and find out what happens when you trigger a 301 redirect and the different factors that go into canonicalization:
How to check the issue?
You can check this issue with online or offline tools that scan your site. They can identify internal URLs which return HTTP status codes of 3XX, where:
- Redirected URLs add trailing slashes to URLs without these marks
- Or redirected URLs remove trailing slashes to URLs with these marks
Internal redirects from trailing slash mismatch analysis is not enough to optimize your site for search engines!
Make a full audit to find out and fix your technical SEO in order to improve your SERP results.
Why is this important?
Internal redirects make the experience worse for search engine crawlers and users because they add extra ‘hops,’ which increases the duration of loading content on pages. Therefore, we recommend you avoid internal URLs for your website.
How to fix the issue?
You should find which URLs on your website need manually updating due to links without/with trailing slashes being erroneously used.
It would help if you made changes to your back-end. Setting up server-side redirects requires access to the server configuration files (the .htaccess file on Apache or NGINX rewrite rules) or setting the redirect headers with server-side scripts (for example, PHP).