Duplicate Content with a Trailing Slash
Avoid duplicate content by enforcing trailing slash in URLs — e.g., https://yourwebsite.com/about.html and https://yourwebsite.com/about.html/ An attacker can buy spammy links to your website with and without the slash. For search engines, it will be two different websites with the same content, and such websites can be penalized for duplicate content.
To protect your website from duplicate content with a trailing slash, in the .htaccess file, configure 301 redirect from the pages with a slash to the pages without a slash (or vice versa, as you like). The main thing is that only one kind of page should be on your website. Besides, you can write in the rel="canonical" tag displayed in the HTML page source and point at the main URL.