A simple script for converting a CSV of URLs into Apache rewrite rules
PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits behind lowellkitchen:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
csv2rw.php

README.md

csv2rw

A simple script for converting a CSV of URLs into Apache rewrite rules.

Usage: php csv2rw.php path_to_csv_file

The csv file is expected to be in the following format:

/old_relative_url, /new_relative_url

Old URLs with query string parameters will be turned into conditional rewrites using the RewriteCond directive.

Use at your own risk! This tool may potentially create invalid rewrite rules.