#Description xml2htaccess is a little script that can be used to (kind off) automate the process of telling Google where the files from the old website went to. The company, where I am an intern, sometimes would need to move an existing website. They would type the whole HTACCESS file, that Google or other Search Engines need to know where all the stuff went. This script will make that task less time consuming (if it works...).
#How to use You need to run this on a webserver of course. Otherwise the PHP script will not work.
I have not written a XML-sitemap script (yet) so I use https://www.xml-sitemaps.com. There you can enther the URL and it will generate the XML, on the bottom of the page. You can also download it. Copy the XML at the bottom of the page and paste it in the field on index.html. If you want, you can download the HTACCESS file to your computer and give it a different name.
Then press "Send".
The script will run and display a page with the HTACCESS data. Copy this and paste it in to the correct file. Or whatever you want to do with it. The output will be written to xml2htaccess.html (if not given a different name), on your server, and if you want, to your computer.
#WordPress plugin Just made a quick WP plugin, because we use a lot of WP at my internship company. So it seemed logical to do so. It is basically the same as the standalone script. It can be downloaded at http://www.jeroengrooten.nl/xml2htaccess.zip. It is not tested or anything so USE AT YOUR OWN RISK!
#Planned improvements -Write a unit test to test everything.