Staging site has all pages with 404 errors

I’m new here, so be gentle :slightly_smiling_face:

I used the Wordpress management of Cyberpanel to set up a staging site after I successfully installed my existing site through the Wordpress manager. When I go to the new staging site, the index page loads fine, but all other pages are missing. They still exist through the back end for editing, etc. but generate 404’s on the front end.

I think I fixed the problem by regenerating my permalinks. It seems to work now, but I was wondering if anyone else has had a similar experience, and how things go when I put the staging site back to production? Any info would be appreciated.

Thanks