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
1 Answer
Reset to default 0If you have access to the database, go into the wp-options table and change the two instances of www.olddomain
to www.newdomain.co
m .
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.co
m ) . 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条)