admin管理员组文章数量:1336331
I migrated a WordPress website on my sub directory and change both site_url from wp_options table.Flush the permalink as well but still links are broken. It seems that site_url() is not working. CSS, javascript and images are not working
Please help me to short out this issue.
I migrated a WordPress website on my sub directory and change both site_url from wp_options table.Flush the permalink as well but still links are broken. It seems that site_url() is not working. CSS, javascript and images are not working
Please help me to short out this issue.
Share Improve this question asked Feb 24, 2017 at 10:49 Ankita KashyapAnkita Kashyap 1517 bronze badges3 Answers
Reset to default 1This question was asked and answered in past!
Anyway it's a broken link problem, after moving a site to another domain or sub domain we face broken link problem.
To Fix Broken Links After Moving Your WordPress Site
Log in to your WordPress admin panel.
From the Plugins menu, click Add New.
Type Search and replace, and then click Search Plugins.
Locate the Search and Replace plugin, and then click Install Now.
Click OK.
Click Activate Plugin.
From the Tools menu, click Search and Replace.
Enter your old site's URL in the Search for field. For example, http://olddomainexample (no trailing slash).
Enter your new site's URL in the Replaced with field. For example, http://newdomainexample (no trailing slash).
Select All, and then click Go.
That's it.
By migrating site it will affect to the all path where you have declared like images, css, js and other urls. Because you have to update all the tables data.
So to make it workable use this plugin
It will solve your problem.
Just use searchand replace file given here: https://github/jmandala/searchreplacedb2
(1) Put this 'searchandreplace.php' file in you wordpress root
(2) Then run this www.youdomain/searchreplacedb2.php
(3) Then add database details in fist step .In second step select all tables and continue and in third step put your old path to 'Search for (case sensitive string):' and in 'Replace with:' add new path and run it will change all paths on database.
本文标签: pluginssite url is not working after migrtaion in worpressall links are broken
版权声明:本文标题:plugins - site url is not working after migrtaion in worpress, all links are broken 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742390335a2465860.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论