Products
GG网络技术分享 2025-03-18 16:12 5
I\'m trying to migrate my website to my localhost and the homepage is not working porperly. My steps were:
When I visit the website on my local server, instead of getting my homepage, I\'m seeing a WAMPP page, with details of the local server.I can access normally the admin. There, I noticed that when I disable the polylang plugin, I can see my homepage. If I enable it again, the problem continues.
Is there any other step to make on my migration considering the polylang plugin to make things right?
图片转代码服务由CSDN问答提供
感谢您的意见,我们尽快改进~
功能建议我正在尝试将我的网站迁移到我的localhost,并且主页无法正常工作。 我的步骤是:</ p>
them放在我本地环境(WAMPP)的文件夹中; </ li> \\ n
< li>并在项目的本地文件夹中运行脚本
搜索 - 替换我的本地文件替换旧URL; </ li>
</ ol>
当我访问我的网站时 本地服务器,而不是获取我的主页,我看到一个WAMPP页面,其中包含本地服务器的详细信息。我可以正常访问管理员。 在那里,我注意到当我禁用polylang插件时,我可以看到我的主页。 如果我再次启用它,问题仍然存在。 </ p>
考虑到使用polylang插件来解决问题,我的迁移还有其他步骤吗?</ p>
</ div>
I forgot to answer my own question. The problem that I was having was due to a .htaccess file that came together with the project when I download it through FTP. This file was forcing an online behavior on my local environment with some redirect. That\'s why I was getting the Xampp home page. So I had to recreate this .htaccess file. After that, everything was working properly. Thanks for the help!
###
The problem is that you\'ve a lot of URL\'s saved in your database for example for pages and posts which needs to get changed to your localhost URL.
It\'s not enough to change the URL in your folder
Check this out: https://www.wpexplorer.com/migrating-wordpress-website/
I did the same thing some months ago with this tutorial and all works great!
Because you already did the first things, you can take a look at Step 7: Linking to New URL & Defining New Domain. This part is about all the search and replace stuff in your DB.
If you needs more help, you can answer my question and I\'ll see what I can do for you.
EDIT
Please attach also a screenshot of your folder structure. Maybe you\'re calling it not correctly in the URL. For example when you place your WordPress
folder in a htdocs
or www
folder in for example XAMPP
you need to call it this way: localhost/wordpress
###
This might not be what you\'re looking for, but I use a plugin called All-in-one WP Migration
I\'ve used it for transferring localhost installations to web, and it works like a charm for me.
Demand feedback