Skip to content

Instantly share code, notes, and snippets.

@tigredanky
Last active June 17, 2021 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigredanky/e48593e0aa86f67ae4b4697b2cdf808c to your computer and use it in GitHub Desktop.
Save tigredanky/e48593e0aa86f67ae4b4697b2cdf808c to your computer and use it in GitHub Desktop.
Regex for three digit url redirection
//SOURCE URL
^/any/slug/([0-9]{3})
//TARGET URL
/and/new/slug/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment