\n\tRequire all denied\n\n" . "\n\tOrder deny,allow\n\tDeny from all\n\n"; // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents -- one-time guard file, best-effort. @file_put_contents( $htaccess, $rules ); } $index = $dir . '/index.php'; if ( ! file_exists( $index ) ) { // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents -- one-time guard file, best-effort. @file_put_contents( $index, "