Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work

Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work