Our SEO company has asked us to add a trailing slash to the end of our urls. We have done this, but someone can still type in the url without the trailing slash and they would like us to add it on.
I've tried implementing a rewrite rule in the web.config file, but this just seems to cause one issue after another. Is there a way to do this natively in Umbraco?
TBH it is probably easier to remove them entirely rather than try to be consistent in adding them. They have not been an SEO requirement for some time, you just should be consistent.
Add a / slash to the end of the url
Hello,
Our SEO company has asked us to add a trailing slash to the end of our urls. We have done this, but someone can still type in the url without the trailing slash and they would like us to add it on.
So if someone types... https://www.mydomain.com/news
it becomes ...
https://www.mydomain.com/news/
I've tried implementing a rewrite rule in the web.config file, but this just seems to cause one issue after another. Is there a way to do this natively in Umbraco?
Thanks!
TBH it is probably easier to remove them entirely rather than try to be consistent in adding them. They have not been an SEO requirement for some time, you just should be consistent.
https://developers.google.com/search/blog/2010/04/to-slash-or-not-to-slash
https://eu.umbhost.net/blog/2021/08/how-to-remove-trailing-slash-in-umbraco-9-rc
is working on a reply...