Can someone help me figure out how to redirect a url like this.
http://www.example.com/file.html/
to
http://www.example.com/file.html
I tried this
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html/ $1\.html [L,R=301]
but it redirects to
http://www.example.com/usr/www/users/user/folder/file.html
Try adding a leading slash to your rule’s target: