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');
Related Posts:
- Serve HTTPS requests from subdomain
- How can i run the same WordPress install on multiple subdomains?
- How to retrieve TLD domain for the current website?
- Relative Root Url For Sub domain name
- 2 WordPress install with same database
- How can I move the subdomain to the root domain?
- Can I edit domain settings if I didn’t create the site?
- Question of the subdomain
- Serve HTTPS requests from subdomain
- I have a question about the name of my blog [closed]
- Change author URL from /author/xyz to a subdomain xyz.domain.com for each new registered users
- How to share cookies and sessions between domain and subdomain?
- Hosting a WordPress blog as a sub folder from a S3 website
- How to use alias domain for multisite installation?
- WordPress Multisite. Can domain be used instead of subdomain?
- Htaccess for Wordpess set on single subdomain
- Share WordPress Login Cookies Between Two Subdomain Installs
- Load template for specific subdomain
- Using subdomain m.website.com for mobile theme?
- Changing Multisite URL after the subsite has been in use
- How do I use different domain for subdomains in WP Multisite?
- How would you detect if WordPress is installed in a subdirectory (not root)?
- Multisite Subdomain Using More Resources Than Others?
- Classic Conundrum: How do I map a Sub-Domain in WordPress? [closed]
- General Settings for WordPress Subdomain
- Moving a blog from a subdomain to a folder
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- How to serve assets files (js, css, images) on a subdomain
- How to redirect one page on the subdomain
- Moving WP installation form subdomain
- Will WordPress installed on a whole domain interfere with other files in a subdomain or subfolder?
- Network of subdomains [closed]
- Change the subdomain?
- Multisite – Looking for ideas to best manage a main site change
- new subdomain to apply as main domain
- Two domain for one site not working in mobile
- Installed WordPress Location
- How to host 2 subdomains as lookalike destinations under one master domain?
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- WordPress subdomain mapping/”archiving” [duplicate]
- WordPress CDN Subdomain URL not accessible to the public
- Install multisite wordpress on a subdomain and map to top level domains
- How do I (re)design my corporate website in WordPress without downtime?
- change wordpress upload url to subdomain on xampp local
- Multisite on single wordpress
- Can I have a WordPress site stored on a subdomain of another website owned by me?
- Automatically generator a WordPress installation on my subdomain
- Theme switch when accessed from sub domain
- Subdomains permalinks issues
- Run two wordpress on the same domain
- How to make each category a subsite?
- When i try to enter subdomain i’m redirected to main domain
- Can’t login to WordPress admin panel after changing domain to use WordPress pages as a fallback from React
- How to Set up a Wildcard Subdomain for all WordPress Posts?
- WordPress cloned but frontend still displays http://old_wordpress_site
- How to load subdirectory mobile theme and redirect mobile devices to subfolder?
- Subdirectory mapping for a WordPress website
- WordPress deleting subdomain from the URL
- After switch domain, some parts of my site still point to my old domain
- How Do I Redirect a WordPress Website?
- Issue while installing wordpress in subdirectory due to SSL [closed]
- Multisite has SSL certificate, but media library is still http://
- Add subdomain for Vue.js application
- new WPMS site not working / Q setting up new site/subdomain
- Can I use WP’s built in domain mapping with WP installed on a sub-domain?
- Create a new hyperlink to wordpress blog
- Changing blog domain name
- Domain name to a page
- How to create short urls for sharing and downloadable content?
- Single WordPress Installation with Sub domains
- Why is my subdomain returning a 403 status?
- WordPress site with subdomain without multisite installation
- Multiple Domains Same Install Different Static Pages
- Hide sub domain created for local CDN
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?
- How to use WordPress Multisite With Different Domain Names?
- Setting up a wordpress network with third level domains
- multisite: use a virtual subfolder for subblogs
- How To Provide Sub-Blogs Their Own Domain Names?
- “Preview Changes” button doesn’t show changes for previously published posts/pages
- How can I link users across multiple subdomains?
- What is the correct way for multi-domain and multi-language website?
- Multisite setup on IIS with subdomains
- Problem with loading images from child theme CSS file with relevant path
- Enable wildcard in a WordPress Multisite (Sub-Domains)
- After duplicating site to a sub folder, links send user to original site
- How to run WordPress from other location on the same domain
- WordPress domain configuration on a different server
- After changing wp from subdirectory to root I can’t preview any changes to a page or post
- Confusion about Site url and directory
- Access web server in local LAN using domain name instead of IP
- How do I move my primary domain out of the public_html folder?
- Reestablishing Automatic and Secure FTP Connection, Primary Domain Change
- Restrict certain roles registrations by domain
- How To Call WP_Query From A Subdomain?
- Multisite: Run a subdomain install from a directory install
- .htaccess for Subdomain and Subfolder w/SSL
- Change URL when visiting wordpress site
- wp-admin keeps forwarding me to an old url
- Multisite subdomain microsite on secondary domain