MainWP Community

Disable htaccess file generation rules and the cache true constant in WP Rocket

Disable .htaccess file generation rules and the cache true constant in WP Rocket on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'rocket_init_cache_dir_generate_htaccess', '__return_false' );
add_filter( 'rocket_set_wp_cache_constant', '__return_false' );
1 Like