bluvertigo
3/15/2017 - 4:14 PM

rewrite URL

rewrite URL

Ho un file del tipo:

"/some-page" => "/"

"/some-other-page" => "/some-other/new-page"

Lo posso convertire utilizzando awk

awk 'NF {print("RewriteRule", $1, $3, "[R]")}' url-map.txt > rewrites.txt