Last active
May 16, 2020 13:55
-
-
Save intsdev/a17e1698fb0333fa086e6dee8dfa00d3 to your computer and use it in GitHub Desktop.
Remove trailing slash (redirect to remove trailing slash) in .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)/$ https://%{HTTP_HOST}/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment