You can apply for a visa after you’ve rectified the reason of rejection, preferably within 3 months of visa rejection.