Created
May 6, 2021 08:03
-
-
Save WProbot/b650f214147068fb90be002d40bcf54f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| BEGIN { | |
| FS = "\t"; | |
| getline; | |
| } | |
| /[/]images[/]/ { | |
| next; | |
| } | |
| $5 { | |
| f = $1; | |
| t = $5 "?red=" | |
| gsub("/(rendezes|dirDesc|results).*$", "", f); | |
| gsub("[?].*$", "", f); | |
| if(!_[f]++) { | |
| print "Redirect", 301, f, t; | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment