Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience that might have been caused due to that.
I looked at the source code of the URL zapp.dk and noticed the trailing slash has been added to the canonical URL in the source code of the URL.
This has happened because of the filter you’ve added in the functions.php file of your theme.
If you’d like to redirect the page from non-slash to a trailing slash URL, then you can achieve that with the Rank Math redirection module.
Here is a detailed article from our Knowledge Base on how to set up redirections:
https://rankmath.com/kb/setting-up-redirections/
We hope this answers your question. Please let us know if you need help with anything else.
Thank you
Hi
I just tested creating a redirect from zapp.dk to zapp.dk/ and that does not work unfortunately. It just says “please add at least one valid source URL”.
Are there any other solutions?
Hello,
This is something that WordPress should automatically do. You may refer to this guide instead as this should help you add the trailing slash to your homepage: https://permalinkmanager.pro/docs/plugin-settings/how-to-add-remove-trailing-slashes/
Clear your cache after adding the trailing slash on WordPress’s permalink settings and see if this resolves your issue.
Looking forward to helping you with this one.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.