beefront172019-11-19 14:06:45
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)
Lord_Dantes, 2019-11-19

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

jamtuson, 2019-11-19

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

zorca, 2019-11-19

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