diff --git a/scripts/redirects.php b/scripts/redirects.php index 80f86c45..62523c02 100644 --- a/scripts/redirects.php +++ b/scripts/redirects.php @@ -23,8 +23,9 @@ if (($handle = fopen($csv, 'r')) !== FALSE) { ]; $output = strtr($template, $templateData); - file_put_contents("source/{$data[0]}.html", $output); + $filename = str_replace('/', '-', $data[0]); + file_put_contents("source/{$data[0]}.html", $output); echo "Written to {$data[0]}.html\n"; } }