Subsites do not redirect to https

Subsites does not redirect to https automatically and shows 404 error when it loads with http://