简体   繁体   English

将WordPress站点复制到本地主机

[英]copy wordpress site to localhost

I've got xampp up and running, copied the files of sikkesautomobielen.nl via FTP to my htdocs, connected my php database and have got my duplicate site working (localhost). 我已经启动并运行xampp,通过FTP将sikkesautomobielen.nl的文件复制到了我的htdocs,连接了我的php数据库,并使我的重复站点正常工作(本地主机)。 When I click on one of the links on the site I still end up on sikkesautomobielen.nl instead of my localhost. 当我单击站点上的链接之一时,我仍然以sikkesautomobielen.nl而不是本地主机结尾。 I guess it's a database issue. 我想这是数据库问题。 Is there an easy way for me to make the URLs reference to localhost instead of sikkesautomobielen? 是否有一种简单的方法可以使URL引用本地主机而不是sikkesautomobielen? I'm trying to develop a Wordpress site and when I'm done, I would like to upload it to the server. 我正在尝试开发Wordpress网站,完成后,我想将其上传到服务器。 This way the site has a minimal down time and I can afford myself some mistakes without the "official" site crashing. 这样,该站点的停机时间最短,我可以承受一些错误,而不会导致“官方”站点崩溃。

It's a database issue. 这是数据库问题。 Go to your database( PHPMyAdmin) and under *_options you will find 2 base urls, change them to your localhost url and the site will work. 转到您的数据库(PHPMyAdmin),在* _options下,您将找到2个基本URL,将它们更改为您的本地主机URL,然后该站点即可正常工作。

Change the 'option_value' of both 'home' & 'siteurl' 更改“ home”和“ siteurl”的“ option_value”

'*' refers to your selected prefix “ *”表示您选择的前缀

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM