If you’re trying to use Safari while offline

Your Mac must be connected to the Internet if you want to go to a webpage in Safari, unless you added the page to your Reading List while you were online.