ERR_CONNECTION_REFUSED after transferring site from hosting to localhost

I’m trying to move my Grav site from hosting to localhost. I copied all the files, but when accessing the site, I get ERR_CONNECTION_REFUSED.

I’ve tried:

Copying just the ‘user’ directory

Changing the URL custom_base_url: ‘http://localhost’ in system.yaml.

The only progress is 404 errors when navigating to pages that don’t exist, like: http://localhost:8005/no-such-page. All other URLs (which really should be on the site) give the error ERR_CONNECTION_REFUSED.

What else should I check to get the local site working? Thanks for any help!

That’s way too little information to even start suggesting anything. You didn’t mention a word about your setup. That’s most likely not even a Grav issue

Please read this post

It is clear that the issue is not in Grav, but in me:). And I realize that I have to change something just a little bit in some files. But I don’t understand in which files and what exactly. The evening spent with AI in search of a solution to this problem did not give any results.

I guess the question can be formulated as follows: how do the settings of a hosted site differ from those of a localhost site?

Based on what you said, it’s either .htaccess or your server setup. Otherwise I’ve no idea