I have the following problem, I have an administrative area where redirects can be registered, and these redirects are saved in the database, I currently do the redirection via PHP
, but I would like to do this redirection via htaccess
. So I'm doing the following I am creating a file called .htaccess2
in the root of my site with those rules that are registered in the database, whenever it makes a change or inserts a new record I re-generate that file. Now my question is how do I import or include this file inside my .htaccess
, something like this:
Include .htaccess2
Does anyone know of any way to perform such an operation?