plugins - Some resources of my website are pointing to www.mysite.comdev and trying to get rid of that append has been a headach

The problem: I'm in the process of migrating a website to another server, so the maintainer of that page gave me th

The problem:

I'm in the process of migrating a website to another server, so the maintainer of that page gave me the code and the database, so I could install it on my server. The problem is that for some reason I can't see some .css files or images loading because some of them point to www.mywebsite/dev/ instead of www.mywebsite/.

Solution I tried:

I read that there's a plugin called Velvet Blues Update URLs, I installed it and I tried to change the url like it says in the instructions but I get 0 results when I try to change the URL so it doesn't change anything. I just get the following text:

ERROR: Something may have gone wrong.   
Your URLs have not been updated.

Results 
0 Content Items (Posts, Pages, Custom Post Types, Revisions)
0 Excerpts
0 Links
0 Attachments
0 Custom Fields
0 GUIDs

I then go to the sql dump file of the database and search for that string myself and I do find the /dev/ in many of the links, however I find the lilnks like "/home/mywebsite/public_html/dev/wp-content/plugins/remove-query-strings-from-static-resources/remove-query-strings.php", I tried to copy and paste this database into the plugin for example and it also get the same error as before.

I don't want to change the links directly on the database because I have heard that it would create some problems. Any ideas about how to be able to get rid of the /dev/ append?

Thank you.

The problem:

I'm in the process of migrating a website to another server, so the maintainer of that page gave me the code and the database, so I could install it on my server. The problem is that for some reason I can't see some .css files or images loading because some of them point to www.mywebsite/dev/ instead of www.mywebsite/.

Solution I tried:

I read that there's a plugin called Velvet Blues Update URLs, I installed it and I tried to change the url like it says in the instructions but I get 0 results when I try to change the URL so it doesn't change anything. I just get the following text:

ERROR: Something may have gone wrong.   
Your URLs have not been updated.

Results 
0 Content Items (Posts, Pages, Custom Post Types, Revisions)
0 Excerpts
0 Links
0 Attachments
0 Custom Fields
0 GUIDs

I then go to the sql dump file of the database and search for that string myself and I do find the /dev/ in many of the links, however I find the lilnks like "/home/mywebsite/public_html/dev/wp-content/plugins/remove-query-strings-from-static-resources/remove-query-strings.php", I tried to copy and paste this database into the plugin for example and it also get the same error as before.

I don't want to change the links directly on the database because I have heard that it would create some problems. Any ideas about how to be able to get rid of the /dev/ append?

Thank you.

Share Improve this question edited Jul 15, 2019 at 20:04 VaTo asked Jul 12, 2019 at 22:00 VaToVaTo 235 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It seems that your software for finding URLs in the database does not find any matches, it might be worth double-checking it with some other method, please see my reply here Wrong domain in uploads folder for more details.

If the CSS file is one of your theme CSS files then most likely the CSS file URL is not stored in the database at all. I would advise checking your theme functions.php or header.php files, my guess is that either the CSS file URL is registered there (using wp_register_style()) function with the /dev/ path or loaded directly in the header.php.

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

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信