Description: There is a web application deployed on Apache. The purpose of the application - to carry out redirects. It is a set of directories with .htaccess-files, in which redirects are written by means of mainly mod_rewrite.
Actually, the problem is: when a new redirect appears, every time you need to write tests, manually register all the rules in .htaccess. The task is to simplify or automate this process.
Maybe someone has experience in solving such problems? And in general, how are such problems solved on large sites?

  • I would write a single script on perl or php that in .htaccess would say to execute for any url. And this script analyzing the faithful url and possibly verifying with the database would give out redirects - Mike

0