P
P
Prosto_User212021-06-15 04:31:26
WordPress
Prosto_User21, 2021-06-15 04:31:26

Wordpress transfer of the working site to the local area. The working version of the site is launched instead of the local one. How to launch the local one?

Moved the working site to local (Open Server). When you start the site from LAN, the working site is launched. In SQL, the "SiteUrl" and "Home" fields in the wp_options file have been replaced with the name of the test site. Help solve the problem with the transition to the working site) Perhaps something has not changed yet

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aricus, 2021-06-15
@Aricus

This is essentially a change in the url of the site. There are many instructions on the Internet, for example, this one .

O
Orkhan Hasanli, 2021-06-15
@azerphoenix

Good afternoon.
It is not enough to change siteUrl & homeUrl. 1) I recommend deleting the file
from the local site. A redirect can be configured in it and, accordingly, the redirect occurs for this reason. 2) After you delete this file, go to the admin panel - Settings - Permalinks and click save. So the WP will create a new htaccess 3) Then install the better search replace plugin Using the plugin in the database, change all the old links to the new ones. For example, Don't change links manually in SQL with search and replace, because there are serialized data in the database and if you change URLs manually, you will lose them (for example, theme settings, plugins, or something ...). .htaccess
http://example.com/
http://localhost:8080/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question