Remove Trailing Slash from WordPress URL (The site also don't have www)
- by mrintech
I need help as I am confused a lot with .htaccess
Some months back, I removed WWW from the URL of my domain name using following .htaccess lines:
RewriteCond %{HTTP_HOST} !^example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
Now, I also want to remove the trailing slash from the URL, as because I am using WordPress and a…