I need a PHP script to write a .htaccess file based on info in a MySQL database.
There's a download system in place that uses dynamic URLs, I simply need the PHP script to grab every file ID and Name from the database and make sure /[url removed, login to view] redirects to /[url removed, login to view] I also need this to work for categories, and to finish it off I need two special strings always added.
Script must obviously remove previous .htaccess file; close permission correctly.
I will escrow money on start, complete on finish. No need to install the script.