Remove Traling slash form angular universal home page url for SEO
Facing duplicate page issue while home page has url like www.abc.com and www.abc.com/ considered as two diffrent url, is there any way to overcome it to redirect it without (/) slash to avoide duplicate content issue in SEO.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sachin SinghRank #66 · 26.2K reputationPosted Oct 2, 2020, 5:12 AM EDT
- To use a 301 parament redirection by removing / at the end of url
- To use 301 parament redirection by adding "/" at the end of url
you can achieve it programatically as mentioned in https://www.c-sharpcorner.com/article/angular-7-routing-with-preserving-trailing-slash-in-url/but the better solution is to configure .htacess or in windows( IIS for 301 redirect/webconfig for 301 redirect).
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 4, 2020, 4:30 AM EDT