Yosemite is so old that you probably won't be able to browse most modern https Web sites, including this forum and including the Apple Support page for downloading old versions of macOS. (The original method of securing https connections turned out to be less secure than believed, and everyone moved away from it.)
I would suggest recovering in two stages:
- First, upgrade to El Capitan or Sierra. The installers for these are behind http (no 's') links to .DMG files. You could copy one of the .DMG files, or a bookmark to its location, to a USB flash drive … then transfer that USB flash drive to the old Mac, get and open (mount) the .DMG, and run the installer application.
- Once El Capitan or Sierra is running, you can make a backup, then try using the App Store link to get Catalina.
How to download and install macOS - Apple Support