admin管理员组文章数量:1289874
I installed XAMPP on my Win 10 PC and migrated my wordpress website onto my PC. After migration, only the frontpage works. The other URLs would get a "Not Found". The frontpage is only partially working but I see a page nevertheless.
I have change required data in wp_options. In wp_posts, I changed the URL in column guid. I have also tinkered with apache configurations but with no success. Setting debug to true in wp-config.php does not reveal anything unusual. May I know if you have any suggestions on what else I should tweak?
wp-admin works only if I do localhost/bs/wp-admin instead of localhost/wp-admin . I tried resaving the permalink but the links remain broken.
Thanks buttered_toast. The htaccess made the files visible. Is there another location where I need to change, I spot :
include(./php/depth2.php) file not found"
I use PHP Code Snippet (Otherwise known as XYZ PHP) plugin. I have marked up your answers. The themes seems to be defaulting to standard Avada themes.
I installed XAMPP on my Win 10 PC and migrated my wordpress website onto my PC. After migration, only the frontpage works. The other URLs would get a "Not Found". The frontpage is only partially working but I see a page nevertheless.
I have change required data in wp_options. In wp_posts, I changed the URL in column guid. I have also tinkered with apache configurations but with no success. Setting debug to true in wp-config.php does not reveal anything unusual. May I know if you have any suggestions on what else I should tweak?
wp-admin works only if I do localhost/bs/wp-admin instead of localhost/wp-admin . I tried resaving the permalink but the links remain broken.
Thanks buttered_toast. The htaccess made the files visible. Is there another location where I need to change, I spot :
include(./php/depth2.php) file not found"
I use PHP Code Snippet (Otherwise known as XYZ PHP) plugin. I have marked up your answers. The themes seems to be defaulting to standard Avada themes.
Share Improve this question edited Jul 12, 2021 at 8:24 Lim Min Chien asked Jul 12, 2021 at 7:11 Lim Min ChienLim Min Chien 1136 bronze badges 1 |1 Answer
Reset to default 1When migrating a live site to local you need to do a couple of thing.
- update the site url, you can do this in wp_options column (phpmyadmin) or in wp-config.php
- You need to find and replace all instances of the old url, you can use better search replace, its a great plugin for exactly that
- update the .htaccess to indicate the correct path of your wordpress
That should be enough for most cases
EDIT
Lets say that your wordpress site is located in htdocs/mysite
The RewriteBase and RewriteRule should be like this
RewriteBase /mysite/
RewriteRule . /mysite/index.php [L]
本文标签: xamppmigration wordpress to local machine does not work with all broken URLs except frontpage
版权声明:本文标题:xampp - migration wordpress to local machine does not work with all broken URLs except frontpage 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741448614a2379352.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wp-admin
, yes, if your wordpress is located in htdocs/bs/, your url will always be with the prefix localhost/bs, so you need to change every old url in the DB to localhost/bs. Other than that I can't help, I can't know what plugins couse problems, i suggest deactivating plugins until your site runs as expected – Buttered_Toast Commented Jul 12, 2021 at 8:34