404 Error after WordPress website migration

Hi, I am trying to migrate a WordPress site to a new domain. The two domains are under the same server. Both sites are using CyberPanel with openlitespeed.

The new domain where I will have to migrate the old site I initially configure it with the WordPress + LS Cache installation and then replace via file manager the WordPress installation: wp-content, wp-admin, wp-config.php, etc…

And of course I also export and import the old database to the new site.

Once done the site goes to 404 and there is no way to log in.

The domain was purchased on Cloudflare and via DNS records I point it to my server.

Make sure the files are under public_html, re-run the openlitespeed service