Water quality parameters such as salt content and various pH environments can alter the stability of gels as well as their rheological properties. Here, we investigated the effect of various concentrations of NaCl and different pH environments on the rheological properties of TEMPO-oxidised cellulose nanofibril (OCNF) and starch-based hydrogels. Addition of NaCl caused an increased stiffness of the OCNF:starch (1:1 wt%) blend gels, where salt played an important role in reducing the repulsive OCNF fibrillar interactions. The rheological properties of these hydrogels were unchanged at pH 5.0 to 9.0. However, at lower pH (4.0), the stiffness and viscosity of the OCNF and OCNF:starch gels appeared to increase due to proton-induced fibrillar interactions. In contrast, at higher pH (11.5), syneresis was observed due to the formation of denser and aggregated gel networks. Interactions as well as aggregation behaviour of these hydrogels were explored via ζ-potential measurements. Furthermore, the nanostructure of the OCNF gels was probed using small-angle x-ray scattering (SAXS), where the SAXS patterns showed an increase of slope in the low-q region with increasing salt concentration arising from aggregation due to the screening of the surface charge of the fibrils.