Can’t login to wordpress after changing domain name
-
Hi all,
I have used a test link in our office domain and was able to login. After changing to the client’s domain, admin site cant be accessed anymore. They have their main site with us running on php.
The sub-site shouldn’t have any connection to the php site since its not related to it, i mean, its not a multisite.
I have created 2 databases already for this site since they have issues with their main site but not on our office domain.Code used were the following just to check if there’s any misconfiguration:
UPDATE wp_options SET option_value = replace(option_value, ‘https://www.oldurl’, ‘https://www.newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;UPDATE wp_posts SET guid = replace(guid, ‘https://www.oldurl’,’https://www.newurl’);
UPDATE wp_posts SET post_content = replace(post_content, ‘https://www.oldurl’, ‘https://www.newurl’);
UPDATE wp_postmeta SET meta_value = replace(meta_value,’https://www.oldurl’,’https://www.newurl’);
Appreciate the reply.
Thanks,
Mark
- The topic ‘Can’t login to wordpress after changing domain name’ is closed to new replies.