Moving website from expired domain to an active subdomain

This is because the database stores information about the old domain.

Open the database in phpmyadmin and run this query. The code will replace the old domain with the new one.

UPDATE wp_options SET option_value = replace(option_value, 'https://mrafiee.net', 'https://old.rafiee.net') WHERE option_name="home" OR option_name="siteurl";
UPDATE wp_posts SET guid = replace(guid, 'https://mrafiee.net','https://old.rafiee.net');
UPDATE wp_posts SET post_content = replace(post_content, 'https://mrafiee.net', 'https://old.rafiee.net');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'https://mrafiee.net','https://old.rafiee.net');