Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple script for converting a CSV of URLs into Apache rewrite rules
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.