I have an uncountable product, say
$$\prod_{i \in I}A_i$$
And i want to replace $A_{i_0}$ and $A_{i_1}$ by $B_{i_0}$ and $B_{i_1}$ respectively. However I know that
$$\left( \prod_{i \in I, \ i \neq i_0, i_1}A_i \right) \times B_{i_0} \times B_{i_1}$$
is not the right way to do this because there is a slight problem with the order of this product.
I could define $C_i$ which equals to $A_i$ for every $i$ except $i_0$ and $i_1$, but I am wondering if there's an easy way to do it.
No, that is the only way to do it. (Your remark on order is true.)