Removing .htm .html extentions and trailing slashes from your urls

Quick post I just wanted to share this with you if you ever need to remove trailing slashes or .html extentions from your uls.
This works with wordpress.

Line 4 removes the trailing .html
Line 5 removes the trailing .htm
Line 6 removes the trailing slash

Feel free to copy and paste into your own .htaccess file.
** Note: change domain.com to your own domain name

Leave a comment

Your email address will not be published. Required fields are marked *