htaccess: migrate from apache 2.2 to 2.4
If you’ve been postponing your apache httpd upgrade to version 2.4, because changing hundreds of custom .htaccess files is giving you a headache, fear no more for there is a simple perl script that does it for you. I’ve been looking for a similar solution myself for some time now and didn’t find anything, so I’ve written it myself.
It’s nothing fancy, nothing really complicated and it probably doesn’t cover every possible scenario you might have, so if you find something that doesn’t work for you contact me, send me a pull request or whatever.
The usage is fairly simple and the code is published on github.
Usage: ./changeHtaccessStyle.pl htaccess_file
Get it from here.