Can I make my .htaccess be generated with php? I would like to use php to dynamicly create my htaccess file from information from the database. It would save me the
You can read and write files with the file system functions, for example:
$data = <<
But it would be more flexible if you use one static rule that redirect the requests to your PHP file that then does the rest.