Thanks for the input.
The change helped so that umbraco no longer adds the / to the link, however in order to fix the issue with dublicate content i need to make a rewrite so it is impossible to access the page with the / or // in the end, do you know how to rewrite the above code to do that?
// creates dublicate content (issue)
Hi Umbraco Forum.
Earlier i had help setting up the following rule to prevent www issues:
Now i would like to rewrite the statement to prevent dublicate content from urls containing // /\ and /
I tried rewriting it, but without success.
Hope someone can help! :)
Hi Asger,
Try to use Umbraco settings for this.
Read more - https://our.umbraco.org/documentation/reference/config/umbracosettings/
Thanks,
Alex
Hi Alex.
Thanks for your response. Im not quite sure what you refer to when you say "as mentioned in the comment above"? I only see your comment.
Also im not quite sure in which file i should make this change that you suggest?
And i have the issue with the /\ too, do you know why that is?
Thanks :)
I thought yes, but not sure :) what is it?
/config/umbracoSettings.config file
I hope it will help you !
Hi Alex.
Thanks for the input. The change helped so that umbraco no longer adds the / to the link, however in order to fix the issue with dublicate content i need to make a rewrite so it is impossible to access the page with the / or // in the end, do you know how to rewrite the above code to do that?
Best regards and high fives!
Hi Asger,
Happy to help!
I'm little bit confused how did you get // and other bad links?
Are they from external sites?
Thanks,
Alex
Hi Alex.
Sorry i think im just bad at formulating my issue.
I made this solution my self, which works perfectly:
But thank you very much for your help! :)
You are welcome!
Great solution!
Have a nice day.
is working on a reply...