Skip to content

Instantly share code, notes, and snippets.

@vdite
Created June 12, 2013 11:26
Show Gist options
  • Save vdite/5764508 to your computer and use it in GitHub Desktop.
Save vdite/5764508 to your computer and use it in GitHub Desktop.
Redirectmatch some URL Parts
Redirectmatch 301 ^/song((s)|(writer))(\/){0,1}(\.htm){0,1}(l){0,1}$ http://tld/songs.html
@vdite
Copy link
Author

vdite commented Jun 12, 2013

matches following uris and redirect them tpo songs.html
/songs
/songs/
/songs.htm
/songs.html

/songwriter
/songwriter/
/songwriter.htm
/songwriter.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment