When making shortbread, cornstarch is the ideal substitute for rice flour. It has a fine texture, which gives the cookie its uniform texture.