Jump to content
  • 0

Перенести сайт с Hostinger на локальный OPENServer


SKSKSS2013
 Share

Question

5 answers to this question

Recommended Posts

  • 0
8 часов назад, jdk сказал:

Не забудьте в БД в таблице wp_options прописать новый (локальный) домен.

Дополняю ответ, дабы облегчить автору задачу:

UPDATE wp_options SET option_value = replace (option_value, 'http://old_domain', 'http://new_domain') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace (guid, 'http://old_domain', 'http://new_domain');
UPDATE wp_posts SET post_content = replace (post_content, 'http://old_domain', 'http://new_domain');

Таким образом можно легко поменять урл со старого на новый в бд

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy