Answer the question
In order to leave comments, you need to log in
How to change the name of a wordpress site?
The site is located on the local machine on Openserver and has the name of the folder in which it is located. Please tell me how can I change the name of this folder.
In phpmyadmin I write the following queries:
UPDATE wp_options
SET option_value = REPLACE(option_value, 'http://www.oldsite.com', 'http://www.newsite.com')
WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts
SET guid = REPLACE(guid, 'http://www.oldsite.com','http://www.newsite.com');
UPDATE wp_posts
SET post_content = REPLACE(post_content, 'http://www.oldsite.com', 'http://www.newsite.com');
Answer the question
In order to leave comments, you need to log in
Hello!
Install the plugin Better Search Replace Enter the name of the folder into the search, replace it with the working url... select all tables, check the guid as well and uncheck the test run and that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question