How to force trailing slash in URL Angular 7 with no 404?
I am trying to add trailing slash in end of URL as we all know for SEO ranking purpose, i am able to add trailing slash at url end but now i am getting issue that everytime i refresh page it redirect me to 404 component. Anyone having any idea how to use trailing slash without 404 issue on refresh?


Muthu KumarRank #935 · 2.2K reputationPosted Jan 16, 2019, 5:37 PM EST
Muthu KumarRank #935 · 2.2K reputationPosted Jan 16, 2019, 5:41 PM EST
I hope its helps to you.
Thanks,
Muthukumar
Anil ThakurRank #1,015 · 1.9K reputationPosted Jan 16, 2019, 8:33 PM EST
Anil ThakurRank #1,015 · 1.9K reputationPosted Apr 30, 2019, 11:23 AM EDT
Amit KumarRank #459 · 5.4K reputationPosted Apr 30, 2019, 7:35 PM EDT
Anil ThakurRank #1,015 · 1.9K reputationPosted May 1, 2019, 9:47 AM EDT
Akila Arun5 reputationPosted Feb 23, 2023, 2:07 AM EST
Hi Anil,
Below issue still presisting...
I am trying to add trailing slash in end of URL as we all know for SEO ranking purpose, i am able to add trailing slash at url end but now i am getting issue that everytime i refresh page it redirect me to 404 component. Anyone having any idea how to use trailing slash without 404 issue on refresh?