Yeah. I wasn't 100% sure. That's why I wanted your opinion. Ideally this stuff wouldn't even live in this file, as other files may want to change the .htaccess or rewrite rules. I'm not sure where the best place is to put this code. Yes, the apache_mod_loaded checks `phpinfo()`. I have tried to make `ini_set()` fake it, but have not had success. I don't think you can set ini vars that php or the module system doesn't know about.

In any case, putting it in via ini_set would be a bit of a hack and a little fragile as the current code just does a string search for the module in the phpinfo() code. If they were to be more thorough in the future, then this wouldn't work.

I think the question is, where can we introduce this function that makes sense given the architecture of wp-cli. Any thoughts?