How do i make it so that if at the end of the link there is a / it doesn't 404?

How do i make it so that if at the end of the link there is a / it doesn't 404?

For example,

If you do " https://help.zoho.com/portal/en/home " or " https://help.zoho.com/portal/en/home/ "

They both work.

However in my website if the user inputs the " / " at the end of the link i get a 404 file not found error.

How to fix?