plugins - How wordpress handle urls present in db for external wp-content directory

I have a site which I moved from one server to other. In source site the wp-content was external and maintained by hosti

I have a site which I moved from one server to other. In source site the wp-content was external and maintained by hosting provided.

After migrating it to new server I changed all the urls and accoring to the new site and added the WP_CONTENT_DIR and WP_CONTENT_URL in wp-config so that the external folder is picked up by the site.

But the problem I faced is mostly all the urls present in the DB gets changed as per the WP_CONTENT_DIR I have mentioned in wp-config, but few doesn't.

SO can anyone tell me how wordpress handles the external wp-content dir after migration or how wordpress manipulates the urls present in the wp_posts table.

Example: my orignal site is and the wp-content is served from /srv/htpdocs/wp-content which is handled by the hosting provider automatically.

Now I moved my site to same url but to some other hosting.

As the hosting provider is different It is not handled automatically. So, I added WP_CONTENT_DIR as '/var/www/html/srv/htdocs/wp-content' and WP_CONTENT_URL as ''

So now link like '' gets automatically converted to while visiting the site. But few links present in the wp_posts table gave 404 error because they didnt get changed as per the WP_CONTENT_DIR.

Can anyone tell me the reason behind this?

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

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信