Filtering htaccess rules
-
Is it possible to give an example of how to filter the htaccess rules?
I tried this in an MU plugin but it doesn’t work 🙁
add_filter('aiowps_htaccess_rules_before_writing', 'change_htaccess_rules'); function change_htaccess_rules($rulesarray){ foreach($rulesarray as $rule){ str_replace('Options All -Indexes', 'Options -Indexes', $rule); } return $rulesarray; }
https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Filtering htaccess rules’ is closed to new replies.