B
B
beefront172019-11-19 14:06:45
WordPress
beefront17, 2019-11-19 14:06:45

After the links in the admin panel, wordpress flew off?

Good afternoon! After transferring the WordPress site from local to hosting, links in the admin panel flew off. For example woocommerce settings is displayed as " woocommerce/?page=wc-settings ".
The question is why and how to fix it? Plus, not all styles are involved ...
I would be grateful for your help!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lord_Dantes, 2019-11-19
@Lord_Dantes

Import your database there and click on the name of your database item, then click on SQL and enter the paste the following command:

UPDATE wp_options SET option_value = REPLACE(option_value, 'old_url', 'new_url') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = REPLACE(guid, 'old_url', 'new_url');
UPDATE wp_posts SET post_content = REPLACE(post_content, 'old_url', 'new_url')

Where old_url = your localhost name and new_url is your current domain.
ps If the tables are different, change the name to yours

J
jamtuson, 2019-11-19
@jamtuson

Settings -> general ->
change site address to the current one. Maybe this is the problem?

Z
zorca, 2019-11-19
@zorca

Change the domain to a new one in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question