This is a PHP class whose purpose is to take a csv file with 2 columns [from uri, to uri] respectively and parse/clean the urls and output a .txt file containing the syntax for 301 redirect using Apache mod_rewrite (typically for use in a .htaccess file)
This class is still personalized, but with slight modification can be addapted to be used for any situation.