I can't remove the trailing slash from homepage link example.com/blog/.
I tried it from .htaccess as well as from site config.
RewriteRule (.+)/$ $1 [R=301,L]
It is working from permalinks, and all categories and posts being without trailing slash. But homepage still has it and is really annoying and not good for my SEO.
** blog is a subdirectory
also treid to define htaccess like the following:
Options -Indexes
DirectorySlash Off
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ./index.php [L]
RewriteRule ^blog$ /blog/index.php [L]
</IfModule>
How can I solve it?