Whenever I change the site to another server
I get this error

I change the permissions of the folders
But still the 500 error continues

The administrator panel works fine

Only the user interface of error 500

I would like solutions

-------- Subdomain tip-------------

Correcting error with subdomain

First 404 error correction in subdomains

In line # wildcard request from .htaccess file

Add RewriteCond %{HTTP_HOST} !^YourSubdomain\. [NC]
Below the

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} !^m\. [NC]