My general recommendation is this: if there are no symptoms that would be indicative of a significant pathology, nor a significant mechanism of injury, rehab should start almost immediately. Some information about what point in a deadlift or squat movement causes increased pain would be helpful for more specific recommendations, but, at that point, specific recommendations should come from a formal consultation.