How can the use of .htaccess be utilized to configure register_globals in PHP for a specific directory?

The issue with register_globals in PHP is that it can pose security risks by allowing external variables to overwrite internal variables. To configure register_globals for a specific directory using .htaccess, you can use the php_flag directive to turn it off. ```apache <Directory /path/to/directory> php_flag register_globals off </Directory> ```