Skip to content

Instantly share code, notes, and snippets.

@thagxt
Created August 31, 2016 11:48
Show Gist options
  • Save thagxt/c358c2533447da4b1ff9d90228118ead to your computer and use it in GitHub Desktop.
Save thagxt/c358c2533447da4b1ff9d90228118ead to your computer and use it in GitHub Desktop.
Make a redirect match with or without closing /
# Make a redirect match with or without closing /
# example.com/highlights is the same as example.com/highlights/
# something that doesn't happen with Redirect 301
RedirectMatch 301 ^/highlights/?$ /highlights.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment