plugins - site url is not working after migrtaion in worpress, all links are broken

I migrated a WordPress website on my sub directory and change both site_url from wp_options table.Flush the permalink as

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 badges
Add a comment  | 

3 Answers 3

Reset to default 1

This 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

  1. Log in to your WordPress admin panel.

  2. From the Plugins menu, click Add New.

  3. Type Search and replace, and then click Search Plugins.

  4. Locate the Search and Replace plugin, and then click Install Now.

  5. Click OK.

  6. Click Activate Plugin.

  7. From the Tools menu, click Search and Replace.

  8. Enter your old site's URL in the Search for field. For example, http://olddomainexample (no trailing slash).

  9. Enter your new site's URL in the Replaced with field. For example, http://newdomainexample (no trailing slash).

  10. 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742390335a4434884.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信