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.
Mageshwaran RPosted Oct 4, 2020, 8:30 AM
Sachin SinghPosted Oct 2, 2020, 9:12 AM
- 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).