Wordpress Redirects to a cancelled domain, need to change it but can't get to the admin portal

I am working with a WordPress site on AWS wherein the site was mapped to a specific domain. That domain has long since b

I am working with a WordPress site on AWS wherein the site was mapped to a specific domain. That domain has long since been sold and canceled, so I want to change the domain to something else to access the site content.

The issue is, when attempting to navigate to the admin portal through /wp-admin or /wp-login.php or similar, the site redirects me to the naked domain which obviously fails since the DNS is no longer configured there.

Can you help me fix this issue through the Linux command line or SFTP? I feel like I have tried everything, but the site is still redirecting.

Any information you have would be appreciated, thanks.

I am working with a WordPress site on AWS wherein the site was mapped to a specific domain. That domain has long since been sold and canceled, so I want to change the domain to something else to access the site content.

The issue is, when attempting to navigate to the admin portal through /wp-admin or /wp-login.php or similar, the site redirects me to the naked domain which obviously fails since the DNS is no longer configured there.

Can you help me fix this issue through the Linux command line or SFTP? I feel like I have tried everything, but the site is still redirecting.

Any information you have would be appreciated, thanks.

Share Improve this question asked Feb 13, 2020 at 22:47 Caine NielsenCaine Nielsen 1 1
  • You defintely would need access to phpmyadmin sql database to change the wp_options table. – user3135691 Commented Feb 13, 2020 at 22:59
Add a comment  | 

1 Answer 1

Reset to default 0

If you have access to the database, go into the wp-options table and change the two instances of www.olddomain to www.newdomain.com .

You should be able to log into the admin area then.

Then use a Search and Replace plugin (I like "Better Search and Replace") to change all instances of www.olddomain to www.newdomain.com ) . That is required to ensure that internal links (especially to media files) will work.

Of course, a backup of your database is always a good idea.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744749558a4591509.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信