I
I
Ivan_Volyk2021-07-16 12:26:31
WordPress
Ivan_Volyk, 2021-07-16 12:26:31

How to return a domain?

The customer in the wp admin changed the current domain to a new domain that is not registered. It doesn't exist in essence. I know it's stupid. Naturally, all access to the admin panel has fallen. Can you please tell me where you need to edit to return the old site address? I was granted access to the host and database

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
approximate solution, 2021-07-16
@approximate_solution

Each hosting makes a daily backup of the database and files, restore it in the control panel. Or, through search replace db, find all lines with a new domain, and prescribe the old one.

P
Pavel, 2021-07-16
@Asokr

Complete the request.

UPDATE wp_options SET option_value = replace(option_value, 'http://domain.ru', 'http://newdomain.ru') WHERE option_name = 'home' OR option_name = 'siteurl';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question