To remove the trailing slash / from the URL in Apache, you can edit the .htaccess file in the root web directory and add the following snippet:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]